diff mbox series

cmake: fix upstream release checking

Message ID 20250407170906.3514273-1-ross.burton@arm.com
State New
Headers show
Series cmake: fix upstream release checking | expand

Commit Message

Ross Burton April 7, 2025, 5:09 p.m. UTC
New releases are no longer made to SourceForge and the GitHub releases
are considered official according to https://libjpeg-turbo.org, so
inherit github-releases and update the SRC_URI.

This now reports that we need to upgrade to 3.1.0.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/recipes-graphics/jpeg/libjpeg-turbo_3.0.1.bb | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

Comments

Alexander Kanavin April 7, 2025, 5:11 p.m. UTC | #1
cmake -> libjpeg-turbo in commit header.

Alex

On Mon, 7 Apr 2025 at 19:09, Ross Burton via lists.openembedded.org
<ross.burton=arm.com@lists.openembedded.org> wrote:
>
> New releases are no longer made to SourceForge and the GitHub releases
> are considered official according to https://libjpeg-turbo.org, so
> inherit github-releases and update the SRC_URI.
>
> This now reports that we need to upgrade to 3.1.0.
>
> Signed-off-by: Ross Burton <ross.burton@arm.com>
> ---
>  meta/recipes-graphics/jpeg/libjpeg-turbo_3.0.1.bb | 7 ++-----
>  1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/meta/recipes-graphics/jpeg/libjpeg-turbo_3.0.1.bb b/meta/recipes-graphics/jpeg/libjpeg-turbo_3.0.1.bb
> index 4ff4cec721b..56bab4dacad 100644
> --- a/meta/recipes-graphics/jpeg/libjpeg-turbo_3.0.1.bb
> +++ b/meta/recipes-graphics/jpeg/libjpeg-turbo_3.0.1.bb
> @@ -8,11 +8,8 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=2a8e0d8226a102f07ab63ed7fd6ce155"
>  DEPENDS:append:x86-64:class-target = " nasm-native"
>  DEPENDS:append:x86:class-target = " nasm-native"
>
> -SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
> -
> +SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BP}.tar.gz"
>  SRC_URI[sha256sum] = "22429507714ae147b3acacd299e82099fce5d9f456882fc28e252e4579ba2a75"
> -UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/libjpeg-turbo/files/"
> -UPSTREAM_CHECK_REGEX = "/libjpeg-turbo/files/(?P<pver>(\d+[\.\-_]*)+)/"
>
>  PE = "1"
>
> @@ -22,7 +19,7 @@ RPROVIDES:${PN} += "jpeg"
>  RREPLACES:${PN} += "jpeg"
>  RCONFLICTS:${PN} += "jpeg"
>
> -inherit cmake pkgconfig
> +inherit cmake pkgconfig github-releases
>
>  export NASMENV = "--reproducible --debug-prefix-map=${WORKDIR}=${TARGET_DBGSRC_DIR}"
>
> --
> 2.43.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#214470): https://lists.openembedded.org/g/openembedded-core/message/214470
> Mute This Topic: https://lists.openembedded.org/mt/112137334/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta/recipes-graphics/jpeg/libjpeg-turbo_3.0.1.bb b/meta/recipes-graphics/jpeg/libjpeg-turbo_3.0.1.bb
index 4ff4cec721b..56bab4dacad 100644
--- a/meta/recipes-graphics/jpeg/libjpeg-turbo_3.0.1.bb
+++ b/meta/recipes-graphics/jpeg/libjpeg-turbo_3.0.1.bb
@@ -8,11 +8,8 @@  LIC_FILES_CHKSUM = "file://LICENSE.md;md5=2a8e0d8226a102f07ab63ed7fd6ce155"
 DEPENDS:append:x86-64:class-target = " nasm-native"
 DEPENDS:append:x86:class-target = " nasm-native"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
-
+SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BP}.tar.gz"
 SRC_URI[sha256sum] = "22429507714ae147b3acacd299e82099fce5d9f456882fc28e252e4579ba2a75"
-UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/libjpeg-turbo/files/"
-UPSTREAM_CHECK_REGEX = "/libjpeg-turbo/files/(?P<pver>(\d+[\.\-_]*)+)/"
 
 PE = "1"
 
@@ -22,7 +19,7 @@  RPROVIDES:${PN} += "jpeg"
 RREPLACES:${PN} += "jpeg"
 RCONFLICTS:${PN} += "jpeg"
 
-inherit cmake pkgconfig
+inherit cmake pkgconfig github-releases
 
 export NASMENV = "--reproducible --debug-prefix-map=${WORKDIR}=${TARGET_DBGSRC_DIR}"