diff mbox series

[meta-oe,walnascar,10/22] freeglut: changed SRC_URI to github + added UPSTREAM_CHECK

Message ID 20250930091841.1693131-11-ankur.tyagi85@gmail.com
State New
Headers show
Series cherry-picks from master branch (batch-3) | expand

Commit Message

Ankur Tyagi Sept. 30, 2025, 9:18 a.m. UTC
From: Jan Vermaete <jan.vermaete@gmail.com>

- added HOMEPAGE
- downloads are now from github
  "Stable releases are available on our releases page on github, where you can find more information about each release. All releases are also mirrored on the old downloads page on sourceforge."
  @see: https://freeglut.sourceforge.net/
- fixed 'devtool check-upgrade-status'

Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 6afcc7939e74023b06fc8655f4120647e4907f8c)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Comments

Gyorgy Sarvari Sept. 30, 2025, 8:34 p.m. UTC | #1
If the SRC_URI is not dead, I would just leave this as it is in Walnascar.

On 9/30/25 11:18, Ankur Tyagi via lists.openembedded.org wrote:
> From: Jan Vermaete <jan.vermaete@gmail.com>
>
> - added HOMEPAGE
> - downloads are now from github
>   "Stable releases are available on our releases page on github, where you can find more information about each release. All releases are also mirrored on the old downloads page on sourceforge."
>   @see: https://freeglut.sourceforge.net/
> - fixed 'devtool check-upgrade-status'
>
> Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> (cherry picked from commit 6afcc7939e74023b06fc8655f4120647e4907f8c)
> Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
> ---
>  meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb b/meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb
> index 2cd00b0349..b3a103054f 100644
> --- a/meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb
> +++ b/meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb
> @@ -1,9 +1,10 @@
>  DESCRIPTION = "FreeGLUT is a free-software/open-source alternative to the OpenGL \
>                 Utility Toolkit (GLUT) library"
> +HOMEPAGE = "https://freeglut.sourceforge.net"
>  LICENSE = "MIT"
>  LIC_FILES_CHKSUM = "file://COPYING;md5=89c0b58a3e01ce3d8254c9f59e78adfb"
>  
> -SRC_URI = "https://sourceforge.net/projects/${BPN}/files/${BPN}/${PV}/${BPN}-${PV}.tar.gz"
> +SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BPN}-${PV}.tar.gz"
>  SRC_URI[sha256sum] = "3c0bcb915d9b180a97edaebd011b7a1de54583a838644dcd42bb0ea0c6f3eaec"
>  
>  inherit cmake features_check pkgconfig
> @@ -24,6 +25,9 @@ PROVIDES += "mesa-glut"
>  
>  DEPENDS = "virtual/libgl libxi"
>  
> +UPSTREAM_CHECK_REGEX = "releases/tag/v(?P<pver>\d+(\.\d+)+)"
> +UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases"
> +
>  do_install:append() {
>      # Remove buildpaths
>      sed -i "s#${RECIPE_SYSROOT}##g" ${D}${libdir}/cmake/FreeGLUT/FreeGLUTTargets.cmake
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#120062): https://lists.openembedded.org/g/openembedded-devel/message/120062
> Mute This Topic: https://lists.openembedded.org/mt/115510966/6084445
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [skandigraun@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Ankur Tyagi Oct. 1, 2025, 11:53 p.m. UTC | #2
On Wed, Oct 1, 2025 at 9:34 AM Gyorgy Sarvari <skandigraun@gmail.com> wrote:
>
> If the SRC_URI is not dead, I would just leave this as it is in Walnascar.

SRC_URI still works, we can drop this patch then.

>
> On 9/30/25 11:18, Ankur Tyagi via lists.openembedded.org wrote:
> > From: Jan Vermaete <jan.vermaete@gmail.com>
> >
> > - added HOMEPAGE
> > - downloads are now from github
> >   "Stable releases are available on our releases page on github, where you can find more information about each release. All releases are also mirrored on the old downloads page on sourceforge."
> >   @see: https://freeglut.sourceforge.net/
> > - fixed 'devtool check-upgrade-status'
> >
> > Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com>
> > Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > (cherry picked from commit 6afcc7939e74023b06fc8655f4120647e4907f8c)
> > Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
> > ---
> >  meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb | 6 +++++-
> >  1 file changed, 5 insertions(+), 1 deletion(-)
> >
> > diff --git a/meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb b/meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb
> > index 2cd00b0349..b3a103054f 100644
> > --- a/meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb
> > +++ b/meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb
> > @@ -1,9 +1,10 @@
> >  DESCRIPTION = "FreeGLUT is a free-software/open-source alternative to the OpenGL \
> >                 Utility Toolkit (GLUT) library"
> > +HOMEPAGE = "https://freeglut.sourceforge.net"
> >  LICENSE = "MIT"
> >  LIC_FILES_CHKSUM = "file://COPYING;md5=89c0b58a3e01ce3d8254c9f59e78adfb"
> >
> > -SRC_URI = "https://sourceforge.net/projects/${BPN}/files/${BPN}/${PV}/${BPN}-${PV}.tar.gz"
> > +SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BPN}-${PV}.tar.gz"
> >  SRC_URI[sha256sum] = "3c0bcb915d9b180a97edaebd011b7a1de54583a838644dcd42bb0ea0c6f3eaec"
> >
> >  inherit cmake features_check pkgconfig
> > @@ -24,6 +25,9 @@ PROVIDES += "mesa-glut"
> >
> >  DEPENDS = "virtual/libgl libxi"
> >
> > +UPSTREAM_CHECK_REGEX = "releases/tag/v(?P<pver>\d+(\.\d+)+)"
> > +UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases"
> > +
> >  do_install:append() {
> >      # Remove buildpaths
> >      sed -i "s#${RECIPE_SYSROOT}##g" ${D}${libdir}/cmake/FreeGLUT/FreeGLUTTargets.cmake
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#120062): https://lists.openembedded.org/g/openembedded-devel/message/120062
> > Mute This Topic: https://lists.openembedded.org/mt/115510966/6084445
> > Group Owner: openembedded-devel+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [skandigraun@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
>
diff mbox series

Patch

diff --git a/meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb b/meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb
index 2cd00b0349..b3a103054f 100644
--- a/meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb
+++ b/meta-oe/recipes-graphics/freeglut/freeglut_3.4.0.bb
@@ -1,9 +1,10 @@ 
 DESCRIPTION = "FreeGLUT is a free-software/open-source alternative to the OpenGL \
                Utility Toolkit (GLUT) library"
+HOMEPAGE = "https://freeglut.sourceforge.net"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=89c0b58a3e01ce3d8254c9f59e78adfb"
 
-SRC_URI = "https://sourceforge.net/projects/${BPN}/files/${BPN}/${PV}/${BPN}-${PV}.tar.gz"
+SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/v${PV}/${BPN}-${PV}.tar.gz"
 SRC_URI[sha256sum] = "3c0bcb915d9b180a97edaebd011b7a1de54583a838644dcd42bb0ea0c6f3eaec"
 
 inherit cmake features_check pkgconfig
@@ -24,6 +25,9 @@  PROVIDES += "mesa-glut"
 
 DEPENDS = "virtual/libgl libxi"
 
+UPSTREAM_CHECK_REGEX = "releases/tag/v(?P<pver>\d+(\.\d+)+)"
+UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases"
+
 do_install:append() {
     # Remove buildpaths
     sed -i "s#${RECIPE_SYSROOT}##g" ${D}${libdir}/cmake/FreeGLUT/FreeGLUTTargets.cmake