diff mbox series

[meta-oe,09/39] cjson: Fetch by tag and add upstream version check

Message ID 20261127003543.2167775-10-khem.raj@oss.qualcomm.com
State New
Headers show
Series Source fixes, upgrades and build fixes | expand

Commit Message

Khem Raj Nov. 27, 2026, 12:35 a.m. UTC
Fetch the v${PV} tag and match the vX.Y.Z release tags.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta-oe/recipes-devtools/cjson/cjson_1.7.19.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-devtools/cjson/cjson_1.7.19.bb b/meta-oe/recipes-devtools/cjson/cjson_1.7.19.bb
index 6f169b1724..5527e785e4 100644
--- a/meta-oe/recipes-devtools/cjson/cjson_1.7.19.bb
+++ b/meta-oe/recipes-devtools/cjson/cjson_1.7.19.bb
@@ -4,7 +4,7 @@  SECTION = "libs"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=218947f77e8cb8e2fa02918dc41c50d0"
 
-SRC_URI = "git://github.com/DaveGamble/cJSON.git;branch=master;protocol=https \
+SRC_URI = "git://github.com/DaveGamble/cJSON.git;branch=master;protocol=https;tag=v${PV} \
            file://run-ptest \
            file://0001-allow-build-with-cmake-4.patch \
            file://CVE-2026-87933.patch \
@@ -12,6 +12,8 @@  SRC_URI = "git://github.com/DaveGamble/cJSON.git;branch=master;protocol=https \
          "
 SRCREV = "c859b25da02955fef659d658b8f324b5cde87be3"
 
+UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$"
+
 inherit cmake pkgconfig ptest
 
 RDEPENDS:${PN}-ptest += "cmake"