Skip to contentSkip to conversation

Upstream version check fixes

PATCH New Khem Raj 1 participant 15 messages Nov 27

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

cover Upstream version check fixes

Fix or add UPSTREAM_CHECK_* settings so devtool check-upgrade-status reports real versions. No recipe versions change in this series.

Khem Raj (14):
libavc1394: Fix upstream version check
libdc1394: Fix upstream version check
opencore-amr: Fix upstream version check
vo-aacenc: Fix upstream version check
vo-amrwbenc: Fix upstream version check
streamripper: Fix upstream version check
alsa-equal: Fix upstream version check
aravis: Fix upstream version check
caps: Fix upstream version check
libyuv: Fix upstream version check
tremor: Fix upstream version check
webrtc-audio-processing-1: Restrict upstream check to the 1.x series
librav1e: Fix the upstream check
dvb-apps: Mark upstream version as unknown

 .../recipes-multimedia/alsa-equal/alsa-equal_0.6.bb      | 3 +++
 .../recipes-multimedia/aravis/aravis_0.8.36.bb           | 3 ++-
 meta-multimedia/recipes-multimedia/caps/caps_0.9.26.bb   | 3 +++
 .../dvb-apps/dvb-apps_1.1.1.20140321.bb                  | 3 +++
 .../recipes-multimedia/libavc1394/libavc1394_0.5.4.bb    | 3 +++
 .../recipes-multimedia/libdc1394/libdc1394_2.2.7.bb      | 3 +++
 meta-multimedia/recipes-multimedia/libyuv/libyuv.bb      | 2 ++
 .../opencore-amr/opencore-amr_0.1.6.bb                   | 3 +++
 .../recipes-multimedia/opencore-amr/vo-aacenc_0.1.3.bb   | 3 +++
 .../recipes-multimedia/opencore-amr/vo-amrwbenc_0.1.3.bb | 3 +++
 .../recipes-multimedia/rav1e/librav1e_p20250902.bb       | 9 ++++++---
 .../streamripper/streamripper_1.64.6.bb                  | 3 +++
 .../recipes-multimedia/tremor/tremor_20180319.bb         | 2 ++
 .../webrtc-audio-processing-1_1.3.bb                     | 3 +++
 14 files changed, 42 insertions(+), 4 deletions(-)
author
#1 lore raw

PATCH 1/14 libavc1394: Fix upstream version check

The SourceForge mirror URL gave no usable listing, so the check found nothing. Check the libavc1394 folder of the project's SourceForge file listing.

AI-Generated: Uses Claude Code

---
 .../recipes-multimedia/libavc1394/libavc1394_0.5.4.bb          | 3 +++
 1 file changed, 3 insertions(+)
meta-multimedia/recipes-multimedia/libavc1394/libavc1394_0.5.4.bb +3 -0
index 02a90c547d..442bac370a 100644
@@ -13,6 +13,9 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.gz"
 SRC_URI[md5sum] = "caf0db059d8b8d35d6f08e6c0e1c7dfe"
 SRC_URI[sha256sum] = "7cb1ff09506ae911ca9860bef4af08c2403f3e131f6c913a2cbd6ddca4215b53"
 
+UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/libavc1394/files/libavc1394/"
+UPSTREAM_CHECK_REGEX = "libavc1394-(?P<pver>\d+(\.\d+)+)\.tar\.gz"
+
 inherit autotools pkgconfig
 
 LDFLAGS:append:libc-musl = " -largp"
author
#2 lore raw

PATCH 2/14 libdc1394: Fix upstream version check

In reply to Khem Raj

The SourceForge mirror URL gave no usable listing, so the check found nothing. Releases are in per-version directories under libdc1394-2 on SourceForge; check those directory names.

AI-Generated: Uses Claude Code

---
 .../recipes-multimedia/libdc1394/libdc1394_2.2.7.bb            | 3 +++
 1 file changed, 3 insertions(+)
meta-multimedia/recipes-multimedia/libdc1394/libdc1394_2.2.7.bb +3 -0
index e1f3b0f2fb..f300204e06 100755
@@ -16,6 +16,9 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.gz \
            file://0001-juju-Do-not-use-variable-length-arrays-in-structs.patch \
            "
 SRC_URI[sha256sum] = "537ceb78dd3cef271a183f4a176191d1cecf85f025520e6bd3758b0e19e6609f"
+
+UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/libdc1394/files/libdc1394-2/"
+UPSTREAM_CHECK_REGEX = "libdc1394-2/(?P<pver>\d+(\.\d+)+)/"
 inherit autotools pkgconfig
 
 EXTRA_OECONF += "--disable-doxygen-doc --disable-examples"
author
#3 lore raw

PATCH 3/14 opencore-amr: Fix upstream version check

In reply to Khem Raj

The SourceForge mirror URL gave no usable listing, so the check found nothing. Check the opencore-amr folder of the opencore-amr SourceForge file listing.

AI-Generated: Uses Claude Code

---
 .../recipes-multimedia/opencore-amr/opencore-amr_0.1.6.bb      | 3 +++
 1 file changed, 3 insertions(+)
meta-multimedia/recipes-multimedia/opencore-amr/opencore-amr_0.1.6.bb +3 -0
index be7977308b..00cdad5175 100644
@@ -10,4 +10,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/opencore-amr/${BP}.tar.gz"
 SRC_URI[md5sum] = "03de025060a4f16c4c44218f65e13e95"
 SRC_URI[sha256sum] = "483eb4061088e2b34b358e47540b5d495a96cd468e361050fae615b1809dc4a1"
 
+UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/opencore-amr/files/opencore-amr/"
+UPSTREAM_CHECK_REGEX = "opencore-amr-(?P<pver>\d+(\.\d+)+)\.tar\.gz"
+
 inherit autotools
author
#4 lore raw

PATCH 4/14 vo-aacenc: Fix upstream version check

In reply to Khem Raj

The SourceForge mirror URL gave no usable listing, so the check found nothing. Check the vo-aacenc folder of the opencore-amr SourceForge file listing.

AI-Generated: Uses Claude Code

---
 .../recipes-multimedia/opencore-amr/vo-aacenc_0.1.3.bb         | 3 +++
 1 file changed, 3 insertions(+)
meta-multimedia/recipes-multimedia/opencore-amr/vo-aacenc_0.1.3.bb +3 -0
index ce3736294a..1ed60bbb2e 100644
@@ -10,4 +10,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/opencore-amr/${BP}.tar.gz"
 SRC_URI[md5sum] = "b574da1d92d75fc40b0b75aa16f24ac4"
 SRC_URI[sha256sum] = "e51a7477a359f18df7c4f82d195dab4e14e7414cbd48cf79cc195fc446850f36"
 
+UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/opencore-amr/files/vo-aacenc/"
+UPSTREAM_CHECK_REGEX = "vo-aacenc-(?P<pver>\d+(\.\d+)+)\.tar\.gz"
+
 inherit autotools
author
#5 lore raw

PATCH 5/14 vo-amrwbenc: Fix upstream version check

In reply to Khem Raj

The SourceForge mirror URL gave no usable listing, so the check found nothing. Check the vo-amrwbenc folder of the opencore-amr SourceForge file listing.

AI-Generated: Uses Claude Code

---
 .../recipes-multimedia/opencore-amr/vo-amrwbenc_0.1.3.bb       | 3 +++
 1 file changed, 3 insertions(+)
meta-multimedia/recipes-multimedia/opencore-amr/vo-amrwbenc_0.1.3.bb +3 -0
index cc049edb81..5cb3a6306d 100644
@@ -10,4 +10,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/opencore-amr/${BP}.tar.gz"
 SRC_URI[md5sum] = "f63bb92bde0b1583cb3cb344c12922e0"
 SRC_URI[sha256sum] = "5652b391e0f0e296417b841b02987d3fd33e6c0af342c69542cbb016a71d9d4e"
 
+UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/opencore-amr/files/vo-amrwbenc/"
+UPSTREAM_CHECK_REGEX = "vo-amrwbenc-(?P<pver>\d+(\.\d+)+)\.tar\.gz"
+
 inherit autotools
author
#6 lore raw

PATCH 6/14 streamripper: Fix upstream version check

In reply to Khem Raj

The SourceForge mirror URL gave no usable listing, so the check found nothing. Releases are in per-version directories under "streamripper (current)" on SourceForge; check those directory names, skipping betas.

AI-Generated: Uses Claude Code

---
 .../recipes-multimedia/streamripper/streamripper_1.64.6.bb     | 3 +++
 1 file changed, 3 insertions(+)
meta-multimedia/recipes-multimedia/streamripper/streamripper_1.64.6.bb +3 -0
index 480c132473..5e67831b44 100644
@@ -18,6 +18,9 @@ SRC_URI = "\
 SRC_URI[mdsum] = "a37a1a8b8f9228522196a122a1c2dd32"
 SRC_URI[sha256sum] = "c1d75f2e9c7b38fd4695be66eff4533395248132f3cc61f375196403c4d8de42"
 
+UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/streamripper/files/streamripper%20%28current%29/"
+UPSTREAM_CHECK_REGEX = "%28current%29/(?P<pver>\d+(\.\d+)+)/"
+
 inherit autotools pkgconfig
 
 CACHED_CONFIGUREVARS += "ac_cv_prog_cc_c23=no"
author
#7 lore raw

PATCH 7/14 alsa-equal: Fix upstream version check

In reply to Khem Raj

The Launchpad +files URL is not a directory listing, so the check found nothing. The original upstream site is gone; check the Debian pool, which carries the same orig tarball.

AI-Generated: Uses Claude Code

---
 .../recipes-multimedia/alsa-equal/alsa-equal_0.6.bb            | 3 +++
 1 file changed, 3 insertions(+)
meta-multimedia/recipes-multimedia/alsa-equal/alsa-equal_0.6.bb +3 -0
index 92f7270972..7d90362939 100644
@@ -15,6 +15,9 @@ SRC_URI = " \
 SRC_URI[md5sum] = "d2edc7710c72cbf3ab297c414e35ebda"
 SRC_URI[sha256sum] = "916e7d152added24617efc350142438a46099efe062bd8781d36dbf10b4e6ff0"
 
+UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/a/alsaequal/"
+UPSTREAM_CHECK_REGEX = "alsaequal_(?P<pver>\d+(\.\d+)+)\.orig\.tar"
+
 S = "${UNPACKDIR}/alsaequal"
 
 EXTRA_OEMAKE = " \
author
#8 lore raw

PATCH 8/14 aravis: Fix upstream version check

In reply to Khem Raj

The check reported 0.9.2, from the odd-numbered development series. Match only releases with an even minor version, anchored at the end of the tag link.

AI-Generated: Uses Claude Code

---
 meta-multimedia/recipes-multimedia/aravis/aravis_0.8.36.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-multimedia/recipes-multimedia/aravis/aravis_0.8.36.bb +2 -1
index 0af3b9bad4..5404e4c372 100644
@@ -19,7 +19,8 @@ SRC_URI = "https://github.com/AravisProject/aravis/releases/download/${PV}/${BPN
 SRC_URI[sha256sum] = "246deaa0042a387ff1bc00332d0fb80537ce14abde2c28d1a54c91f17adc51bf"
 
 UPSTREAM_CHECK_URI = "https://github.com/AravisProject/aravis/releases"
-UPSTREAM_CHECK_REGEX = "releases/tag/(?P<pver>\d+(\.\d+)+)"
+# odd minor versions are development releases
+UPSTREAM_CHECK_REGEX = "releases/tag/(?P<pver>\d+\.\d*[02468](\.\d+)+)$"
 
 EXTRA_OEMESON += "-Dtests=false"
 
author
#9 lore raw

PATCH 9/14 caps: Fix upstream version check

In reply to Khem Raj

quitte.de/dsp/ has no directory listing, so the check found nothing. Check the project page, which links the current tarball.

AI-Generated: Uses Claude Code

---
 meta-multimedia/recipes-multimedia/caps/caps_0.9.26.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-multimedia/recipes-multimedia/caps/caps_0.9.26.bb +3 -0
index 964d18a5de..fa5318343b 100644
@@ -11,6 +11,9 @@ SRC_URI = "http://quitte.de/dsp/${BPN}_${PV}.tar.bz2 \
 SRC_URI[md5sum] = "36b30c7c7db2d2bc5f4f54077e97b5ee"
 SRC_URI[sha256sum] = "e7496c5bce05abebe3dcb635926153bbb58a9337a6e423f048d3b61d8a4f98c9"
 
+UPSTREAM_CHECK_URI = "http://quitte.de/dsp/caps.html"
+UPSTREAM_CHECK_REGEX = "caps_(?P<pver>\d+(\.\d+)+)\.tar"
+
 EXTRA_OEMAKE = " \
     CC='${CXX}' \
     CFLAGS='${CFLAGS} -ffast-math -funroll-loops -fPIC -DPIC' \
author
#10 lore raw

PATCH 10/14 libyuv: Fix upstream version check

In reply to Khem Raj

libyuv has no release tags and the recipe tracks the main branch, so the tag check found nothing. Check for new commits instead.

AI-Generated: Uses Claude Code

---
 meta-multimedia/recipes-multimedia/libyuv/libyuv.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-multimedia/recipes-multimedia/libyuv/libyuv.bb +2 -0
index f255626310..c35fa6d3ba 100644
@@ -10,6 +10,8 @@ SRC_URI = "git://chromium.googlesource.com/libyuv/libyuv;protocol=https;branch=m
 SRCREV = "5a17753597d77dee881d9d93097ca2c2079e9409"
 PV = "0.1+git"
 
+UPSTREAM_CHECK_COMMITS = "1"
+
 inherit cmake
 
 PACKAGECONFIG ??= "jpeg"
author
#11 lore raw

PATCH 11/14 tremor: Fix upstream version check

In reply to Khem Raj

tremor has no release tags and the recipe tracks the master branch, so the tag check found nothing. Check for new commits instead.

AI-Generated: Uses Claude Code

---
 meta-multimedia/recipes-multimedia/tremor/tremor_20180319.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-multimedia/recipes-multimedia/tremor/tremor_20180319.bb +2 -0
index 707054d540..b521d5fb37 100644
@@ -12,6 +12,8 @@ SRC_URI = "git://gitlab.xiph.org/xiph/tremor.git;protocol=https;branch=master \
 "
 SRCREV = "7c30a66346199f3f09017a09567c6c8a3a0eedc8"
 
+UPSTREAM_CHECK_COMMITS = "1"
+
 
 inherit autotools pkgconfig
 
author
#12 lore raw

PATCH 12/14 webrtc-audio-processing-1: Restrict upstream check to the 1.x series

In reply to Khem Raj

The check reported 2.1, which is packaged as webrtc-audio-processing-2. Match 1.x tarballs only.

AI-Generated: Uses Claude Code

---
 .../webrtc-audio-processing/webrtc-audio-processing-1_1.3.bb   | 3 +++
 1 file changed, 3 insertions(+)
meta-multimedia/recipes-multimedia/webrtc-audio-processing/webrtc-audio-processing-1_1.3.bb +3 -0
index 08104cbc62..c2aa5d3c9e 100644
@@ -17,6 +17,9 @@ SRC_URI = " \
 SRC_URI[sha256sum] = "2365e93e778d7b61b5d6e02d21c47d97222e9c7deff9e1d0838ad6ec2e86f1b9"
 S = "${UNPACKDIR}/webrtc-audio-processing-${PV}"
 
+# 2.x is packaged as webrtc-audio-processing-2
+UPSTREAM_CHECK_REGEX = "webrtc-audio-processing-(?P<pver>1(\.\d+)+)\.tar"
+
 LDFLAGS:append:libc-musl = " -lexecinfo"
 
 inherit meson pkgconfig
author
#13 lore raw

PATCH 13/14 librav1e: Fix the upstream check

In reply to Khem Raj

get_recipe_upstream_version() only looks at the first SRC_URI entry, which was a crate from librav1e-crates.inc, so the check reported a crate version (0.27.1). Set the git SRC_URI before requiring the crates file and match the p<date> tags the recipe follows.

AI-Generated: Uses Claude Code

---
 .../recipes-multimedia/rav1e/librav1e_p20250902.bb       | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
meta-multimedia/recipes-multimedia/rav1e/librav1e_p20250902.bb +6 -3
index 13f417008b..00dbc7418e 100644
@@ -5,6 +5,12 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=6a960f542b01a3e538903e87236b3668"
 
 inherit cargo_c pkgconfig cargo-update-recipe-crates
 
+SRC_URI = "git://github.com/xiph/rav1e.git;protocol=https;nobranch=1;tag=${PV}"
+SRCREV = "a2f01b3e233f531c28a20b4c29fb5c9e5d29fa6d"
+
+# Follow the p<date> prerelease tags, not the v* releases
+UPSTREAM_CHECK_GITTAGREGEX = "^(?P<pver>p\d{8})$"
+
 require ${PN}-crates.inc
 
 CARGO_BUILD_FLAGS += "--no-default-features --features binaries,asm,threading,signal_support"
@@ -12,8 +18,5 @@ CARGO_BUILD_FLAGS += "--no-default-features --features binaries,asm,threading,si
 DEPENDS:append:x86 = " nasm-native"
 DEPENDS:append:x86-64 = " nasm-native"
 
-SRC_URI += "git://github.com/xiph/rav1e.git;protocol=https;nobranch=1;tag=${PV}"
-SRCREV = "a2f01b3e233f531c28a20b4c29fb5c9e5d29fa6d"
-
 # TODO we need to pass -fdebug-prefix-map to the nasm calls
 INHIBIT_PACKAGE_DEBUG_SPLIT:x86-64 = "1"
author
#14 lore raw

PATCH 14/14 dvb-apps: Mark upstream version as unknown

In reply to Khem Raj

linuxtv.org's hg server is gone (the archive URL returns 404) and dvb-apps is no longer developed, so the check reported UNKNOWN_BROKEN. The tarball is still served by the source mirrors.

AI-Generated: Uses Claude Code

---
 .../recipes-multimedia/dvb-apps/dvb-apps_1.1.1.20140321.bb     | 3 +++
 1 file changed, 3 insertions(+)
meta-multimedia/recipes-multimedia/dvb-apps/dvb-apps_1.1.1.20140321.bb +3 -0
index 232130be0f..05ac373fa3 100644
@@ -15,6 +15,9 @@ SRC_URI = "https://www.linuxtv.org/hg/dvb-apps/archive/3d43b280298c.tar.bz2;down
 SRC_URI[sha256sum] = "f39e2f0ebed7e32bce83522062ad4d414f67fccd5df1b647618524497e15e057"
 S = "${UNPACKDIR}/${BPN}-3d43b280298c"
 
+# The linuxtv hg server is gone and dvb-apps is no longer developed
+UPSTREAM_VERSION_UNKNOWN = "1"
+
 inherit perlnative
 
 export enable_static = "no"