diff mbox series

[meta-multimedia,13/14] librav1e: Fix the upstream check

Message ID 20261127070112.2273685-14-khem.raj@oss.qualcomm.com
State New
Headers show
Series Upstream version check fixes | expand

Commit Message

Khem Raj Nov. 27, 2026, 7:01 a.m. UTC
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
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../recipes-multimedia/rav1e/librav1e_p20250902.bb       | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/meta-multimedia/recipes-multimedia/rav1e/librav1e_p20250902.bb b/meta-multimedia/recipes-multimedia/rav1e/librav1e_p20250902.bb
index 13f417008b..00dbc7418e 100644
--- a/meta-multimedia/recipes-multimedia/rav1e/librav1e_p20250902.bb
+++ b/meta-multimedia/recipes-multimedia/rav1e/librav1e_p20250902.bb
@@ -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"