diff mbox series

[meta-initramfs,3/3] rsinit: Pin SRCREV and drop the v from PV

Message ID 20261127070329.2393585-4-khem.raj@oss.qualcomm.com
State New
Headers show
Series grubby, kexec-tools-klibc and rsinit fixes | expand

Commit Message

Khem Raj Nov. 27, 2026, 7:03 a.m. UTC
SRCREV = "${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
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../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%)
diff mbox series

Patch

diff --git a/meta-initramfs/recipes-core/rsinit/rsinit_v0.1.0.bb b/meta-initramfs/recipes-core/rsinit/rsinit_0.1.0.bb
similarity index 89%
rename from meta-initramfs/recipes-core/rsinit/rsinit_v0.1.0.bb
rename to meta-initramfs/recipes-core/rsinit/rsinit_0.1.0.bb
index e2c5e71d54..e4e1d81f14 100644
--- a/meta-initramfs/recipes-core/rsinit/rsinit_v0.1.0.bb
+++ b/meta-initramfs/recipes-core/rsinit/rsinit_0.1.0.bb
@@ -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