grubby, kexec-tools-klibc and rsinit fixes
cover grubby, kexec-tools-klibc and rsinit fixes
Upstream version check fixes for grubby and kexec-tools-klibc, and pin rsinit to a fixed SRCREV; its floating tag made devtool check-upgrade-status abort.
Khem Raj (3):
grubby: Fix upstream version check
kexec-tools-klibc: Fix upstream version check
rsinit: Pin SRCREV and drop the v from PV
.../rsinit/{rsinit_v0.1.0.bb => rsinit_0.1.0.bb} | 6 ++++--
meta-initramfs/recipes-devtools/grubby/grubby_git.bb | 2 ++
.../recipes-kernel/kexec/kexec-tools-klibc_git.bb | 2 ++
3 files changed, 8 insertions(+), 2 deletions(-)
rename meta-initramfs/recipes-core/rsinit/{rsinit_v0.1.0.bb => rsinit_0.1.0.bb} (89%)PATCH 1/3 grubby: Fix upstream version check
The recipe tracks the main branch past the last tag (8.40-1) and has no numeric PV, so comparing against tags reported nothing useful. Upstream is archived; check for new commits on main instead.
AI-Generated: Uses Claude Code
--- meta-initramfs/recipes-devtools/grubby/grubby_git.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-initramfs/recipes-devtools/grubby/grubby_git.bb +2 -0
@@ -21,6 +21,8 @@ SRC_URI = "git://github.com/rhboot/grubby.git;protocol=https;;branch=main \ file://run-ptest \ " +UPSTREAM_CHECK_COMMITS = "1" + RDEPENDS:${PN} += "dracut" inherit ptest
PATCH 2/3 kexec-tools-klibc: Fix upstream version check
In reply to Khem RajThe default tag regex picked up the v20080324 date tag. Match only vX.Y.Z release tags.
AI-Generated: Uses Claude Code
--- meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb +2 -0
@@ -14,6 +14,8 @@ inherit klibc autotools siteinfo SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git;branch=master" SRCREV = "15d78e5799eea7ec5ea9c5897ae95aaa0ce8970c" +UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$" + BUILD_PATCHES = "file://0001-force-static-build.patch \ file://0002-Adjust-the-order-of-headers-to-fix-build-for-musl.patch \ "
PATCH 3/3 rsinit: Pin SRCREV and drop the v from PV
In reply to Khem RajSRCREV = "${PV}" is a floating tag, so the fetcher has to resolve it over the network on every parse, and devtool check-upgrade-status aborts the whole run on it:
Recipe uses a floating tag/branch 'v0.1.0' for repo 'github.com/pengutronix/rsinit.git' without a fixed SRCREV
Rename the recipe to rsinit_0.1.0.bb, fetch tag=v${PV} with the tag's commit as SRCREV, and add an UPSTREAM_CHECK_GITTAGREGEX for the v-prefixed tags.
AI-Generated: Uses Claude Code
---
.../rsinit/{rsinit_v0.1.0.bb => rsinit_0.1.0.bb} | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
rename meta-initramfs/recipes-core/rsinit/{rsinit_v0.1.0.bb => rsinit_0.1.0.bb} (89%)meta-initramfs/recipes-core/rsinit/rsinit_0.1.0.bb renamed from meta-initramfs/recipes-core/rsinit/rsinit_v0.1.0.bb +4 -2
@@ -6,8 +6,10 @@ LICENSE = "GPL-2.0-only AND CC0-1.0" LIC_FILES_CHKSUM = "file://LICENSES/GPL-2.0-only.txt;md5=570a9b3749dd0463a1778803b12a6dce \ file://LICENSES/CC0-1.0.txt;md5=65d3616852dbf7b1a6d4b53b00626032" -SRC_URI = "git://github.com/pengutronix/rsinit.git;protocol=https;branch=main" -SRCREV = "${PV}" +SRC_URI = "git://github.com/pengutronix/rsinit.git;protocol=https;branch=main;tag=v${PV}" +SRCREV = "91732bdc0364e0bd0bc3a77dbedfa3a1dd330a1a" + +UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$" inherit cargo cargo-update-recipe-crates