Skip to contentSkip to conversation

Upstream version check fixes

PATCH New Khem Raj 1 participant 6 messages Nov 27

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

cover Upstream version check fixes

Fix the upstream version checks of five recipes.

Khem Raj (5):
libisoburn: Fix upstream version check
libisofs: Fix upstream version check
httpfs2: Fix upstream version check
zfs: Fix upstream version check
fuse: Fix upstream version check

 .../recipes-filesystems/burnia/libisoburn_1.5.8.pl02.bb      | 2 ++
 .../recipes-filesystems/burnia/libisofs_1.5.8.pl02.bb        | 2 ++
 .../recipes-filesystems/httpfs2-fuse/httpfs2_0.1.5.bb        | 3 +++
 meta-filesystems/recipes-filesystems/zfs/zfs_2.4.4.bb        | 2 ++
 meta-filesystems/recipes-support/fuse/fuse_2.9.9.bb          | 5 +++--
 5 files changed, 12 insertions(+), 2 deletions(-)
author
#1 lore raw

PATCH 1/5 libisoburn: Fix upstream version check

The default regex stopped at the patchlevel suffix of libisoburn-1.5.8.pl02.tar.gz and reported "02". Match the full version including an optional .plNN suffix.

AI-Generated: Uses Claude Code

---
 .../recipes-filesystems/burnia/libisoburn_1.5.8.pl02.bb         | 2 ++
 1 file changed, 2 insertions(+)
meta-filesystems/recipes-filesystems/burnia/libisoburn_1.5.8.pl02.bb +2 -0
index 3b3b19fdee..83c36b73b8 100644
@@ -8,6 +8,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=9ac2e7cff1ddaf48b6eab6028f23ef88 \
 SRC_URI = "http://files.libburnia-project.org/releases/libisoburn-${PV}.tar.gz"
 SRC_URI[sha256sum] = "a977b03dc3686d9fdca600458b1578f9cac2b875609bd5ec21f5ada55f20ec50"
 
+UPSTREAM_CHECK_REGEX = "libisoburn-(?P<pver>\d+(\.\d+)+(\.pl\d+)?)\.tar\.gz"
+
 # The patchlevel (.pl02) tarball unpacks into a directory without the
 # patchlevel suffix.
 S = "${UNPACKDIR}/libisoburn-${@d.getVar('PV').split('.pl')[0]}"
author
#2 lore raw

PATCH 2/5 libisofs: Fix upstream version check

In reply to Khem Raj

The default regex stopped at the patchlevel suffix of libisofs-1.5.8.pl02.tar.gz and reported "02". Match the full version including an optional .plNN suffix.

AI-Generated: Uses Claude Code

---
 .../recipes-filesystems/burnia/libisofs_1.5.8.pl02.bb           | 2 ++
 1 file changed, 2 insertions(+)
meta-filesystems/recipes-filesystems/burnia/libisofs_1.5.8.pl02.bb +2 -0
index 28ae0766e8..b0cd91fe52 100644
@@ -8,6 +8,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=9ac2e7cff1ddaf48b6eab6028f23ef88 \
 SRC_URI = "http://files.libburnia-project.org/releases/${BP}.tar.gz"
 SRC_URI[sha256sum] = "10bd584d8f00d8091e814902b9f0a3e209f16e938f510fc23ba05f3fa469db5a"
 
+UPSTREAM_CHECK_REGEX = "libisofs-(?P<pver>\d+(\.\d+)+(\.pl\d+)?)\.tar\.gz"
+
 # The patchlevel (.pl02) tarball unpacks into a directory without the
 # patchlevel suffix.
 S = "${UNPACKDIR}/libisofs-${@d.getVar('PV').split('.pl')[0]}"
author
#3 lore raw

PATCH 3/5 httpfs2: Fix upstream version check

In reply to Khem Raj

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

AI-Generated: Uses Claude Code

---
 .../recipes-filesystems/httpfs2-fuse/httpfs2_0.1.5.bb          | 3 +++
 1 file changed, 3 insertions(+)
meta-filesystems/recipes-filesystems/httpfs2-fuse/httpfs2_0.1.5.bb +3 -0
index 2370633551..d940e81b3c 100644
@@ -11,6 +11,9 @@ RDEPENDS:${PN} += "fuse"
 SRC_URI += "${SOURCEFORGE_MIRROR}/project/httpfs/httpfs2/httpfs2-${PV}.tar.gz"
 SRC_URI[sha256sum] = "01cb4bb38deb344f540da6f1464dc7edbdeb51213ad810b8c9c282c1e17e0fc1"
 
+UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/httpfs/files/httpfs2/"
+UPSTREAM_CHECK_REGEX = "httpfs2-(?P<pver>\d+(\.\d+)+)\.tar\.gz"
+
 S = "${UNPACKDIR}/httpfs2-${PV}"
 
 do_compile() {
author
#4 lore raw

PATCH 4/5 zfs: Fix upstream version check

In reply to Khem Raj

The default tag regex picked up zfs-2.4.99, a development marker tag, rather than a release. Match zfs-X.Y.Z tags and skip the X.Y.99 markers.

AI-Generated: Uses Claude Code

---
 meta-filesystems/recipes-filesystems/zfs/zfs_2.4.4.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-filesystems/recipes-filesystems/zfs/zfs_2.4.4.bb +2 -0
index a92efec541..4942e93140 100644
@@ -11,6 +11,8 @@ SRC_URI = "git://github.com/openzfs/zfs;protocol=https;branch=zfs-2.4-release;ta
            file://0001-fs-tests-cmd-readmmap-Replace-uint_t-with-uint32_t.patch \
 "
 
+UPSTREAM_CHECK_GITTAGREGEX = "^zfs-(?P<pver>\d+\.\d+\.(?!99$)\d+)$"
+
 # Using both 'module' and 'autotools' classes seems a bit odd, they both
 # define a do_compile function.
 # That's why we opt for module-base, also this prevents module splitting.
author
#5 lore raw

PATCH 5/5 fuse: Fix upstream version check

In reply to Khem Raj

The releases page no longer lists tarball names and the 2.x releases are paginated away behind the 3.x ones, so the check found nothing. Search the releases page for fuse-2 and match the 2.x release tags.

AI-Generated: Uses Claude Code

---
 meta-filesystems/recipes-support/fuse/fuse_2.9.9.bb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
meta-filesystems/recipes-support/fuse/fuse_2.9.9.bb +3 -2
index f127514f68..49e5023b00 100644
@@ -19,8 +19,9 @@ SRC_URI = "https://github.com/libfuse/libfuse/releases/download/${BP}/${BP}.tar.
 SRC_URI[md5sum] = "8000410aadc9231fd48495f7642f3312"
 SRC_URI[sha256sum] = "d0e69d5d608cc22ff4843791ad097f554dd32540ddc9bed7638cc6fea7c1b4b5"
 
-UPSTREAM_CHECK_URI = "https://github.com/libfuse/libfuse/releases"
-UPSTREAM_CHECK_REGEX = "fuse\-(?P<pver>2(\.\d+)+).tar.gz"
+# 3.x is packaged as fuse3
+UPSTREAM_CHECK_URI = "https://github.com/libfuse/libfuse/releases?q=fuse-2&expanded=true"
+UPSTREAM_CHECK_REGEX = "releases/tag/fuse-(?P<pver>2(\.\d+)+)$"
 
 CVE_PRODUCT = "fuse_project:fuse fuse:fuse"