diff mbox series

[meta-oe,68/69] protobuf: Fix upstream version check

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

Commit Message

Khem Raj Nov. 27, 2026, 12:34 a.m. UTC
PV is the libprotobuf version (7.36.2) while upstream tags the protoc
version (v36.2), so the check reported a bogus 36.2 update. The git
check cannot map one to the other, so set UPSTREAM_VERSION_UNKNOWN; the
tag regex is kept, so oe-core reports the newest protoc tag with
KNOWN_BROKEN status rather than a false UPDATE.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta-oe/recipes-devtools/protobuf/protobuf_7.36.2.bb | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-devtools/protobuf/protobuf_7.36.2.bb b/meta-oe/recipes-devtools/protobuf/protobuf_7.36.2.bb
index b83597965b..f200aff1d3 100644
--- a/meta-oe/recipes-devtools/protobuf/protobuf_7.36.2.bb
+++ b/meta-oe/recipes-devtools/protobuf/protobuf_7.36.2.bb
@@ -24,11 +24,8 @@  SRC_URI = "git://github.com/protocolbuffers/protobuf.git;branch=${PROTOC_BRANCH}
            file://0001-fix-protobuf-native-build-failure-with-gcc-10.patch \
            "
 
-# Upstream dropped the language-major prefix after v6.31.1: releases are now
-# tagged vNN.N (v36.2 == this recipe's 7.36.2, cf. PROTOC_VERSION above). Match
-# those two-component tags so the real latest release is reported; the leading
-# C++ major in PV means the comparison stays off-by-a-major, so this reads as UPDATE
-# rather than MATCH even when current.
+# Tags are vNN.N (protoc version, v36.2 == PV 7.36.2) but PV is the libprotobuf version, so tags never compare equal to PV.
+UPSTREAM_VERSION_UNKNOWN = "1"
 UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+\.\d+)$"
 
 CVE_PRODUCT = "google:protobuf protobuf:protobuf google-protobuf protobuf-cpp"