diff mbox series

[meta-oe,07/12] libjson-perl: Upgrade 4.05 -> 4.11

Message ID 20261202060612.3378528-8-khem.raj@oss.qualcomm.com
State New
Headers show
Series Fix broken upstream version checks in meta-oe | expand

Commit Message

Khem Raj Dec. 2, 2026, 6:06 a.m. UTC
Upstream changes since 4.05 are backports of newer JSON::PP into the
bundled pure-perl backend (up to JSON::PP 4.18), and a test fix for perls
with core bool support.

Use the plain upstream version (4.11) as PV instead of the zero-padded
CPAN form (4.05000), which sorted above every newer release and forced
UPSTREAM_VERSION_UNKNOWN; set PE = "1" since 4.11 < 4.05000 in vercmp.
The upstream check now uses the release tags directly.

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

Patch

diff --git a/meta-oe/recipes-devtools/perl/libjson-perl_4.11.bb b/meta-oe/recipes-devtools/perl/libjson-perl_4.11.bb
index 56fa7f2c1e..1f9286dbe2 100644
--- a/meta-oe/recipes-devtools/perl/libjson-perl_4.11.bb
+++ b/meta-oe/recipes-devtools/perl/libjson-perl_4.11.bb
@@ -11,12 +11,11 @@  DEPENDS += "perl"
 
 SRC_URI = "git://github.com/makamaka/JSON.git;protocol=https;branch=master"
 
-SRCREV = "39bc0e567c202762a575fed2844ebdb941c3ca09"
-# Upstream tags are plain "X.YZ" (e.g. 4.11); PV mirrors them padded (4.05 -> 4.05000).
-UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
-# PV uses CPAN zero-padded versioning (4.05000) which cannot be compared
-# against upstream's plain tags (4.11); the regex resolves but vercmp mis-sorts.
-UPSTREAM_VERSION_UNKNOWN = "1"
+SRCREV = "2e2812bb38a143ef2e0a553104c0a58a693f8ca7"
+# PV follows the plain upstream tags (4.11); PE covers the move away from the
+# zero-padded CPAN form (4.05000), which sorted above newer releases
+PE = "1"
+UPSTREAM_CHECK_GITTAGREGEX = "^(?P<pver>\d+\.\d+)$"
 
 
 inherit cpan