diff mbox series

libxml-parser-perl: upgrade 2.59 -> 2.61

Message ID 20261130065701.3431102-1-tim.orling@konsulko.com
State New
Headers show
Series libxml-parser-perl: upgrade 2.59 -> 2.61 | expand

Commit Message

Tim Orling Nov. 30, 2026, 6:56 a.m. UTC
Changelog:
- Don't load encoding maps from the current working directory
- Fix OOB heap read in convert_to_unicode via crafted encoding map
- Add MaxEntitySize option (default 10 MB) to limit LWP external entity
  fetches
- Validate PrefixMap bmap_start bounds in XML_LoadEncoding
- Fix escaping of CR/LF/TAB in Stream style attribute values
- Return undef from ErrorString for unknown error codes

Refresh the cross-compile patch for the new check_lib loop in
Makefile.PL. Add perl-module-cwd to the ptest RDEPENDS for the new
t/encoding_path_cwd.t, and perl-module-overload to RDEPENDS:${PN}, which
Expat.pm has always used.

Changes: https://metacpan.org/dist/XML-Parser/changes

Tested by building target, native and nativesdk, and running ptest on
qemux86-64.

AI-Generated: Uses Claude Code (Claude Opus 5.5)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
 ...ile.PL-make-check_lib-cross-friendly.patch | 19 +++++++++----------
 ...erl_2.59.bb => libxml-parser-perl_2.61.bb} |  4 +++-
 2 files changed, 12 insertions(+), 11 deletions(-)
 rename meta/recipes-devtools/perl/{libxml-parser-perl_2.59.bb => libxml-parser-perl_2.61.bb} (93%)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/perl/libxml-parser-perl/0001-Makefile.PL-make-check_lib-cross-friendly.patch b/meta/recipes-devtools/perl/libxml-parser-perl/0001-Makefile.PL-make-check_lib-cross-friendly.patch
index 196596f8c6..b9c085931b 100644
--- a/meta/recipes-devtools/perl/libxml-parser-perl/0001-Makefile.PL-make-check_lib-cross-friendly.patch
+++ b/meta/recipes-devtools/perl/libxml-parser-perl/0001-Makefile.PL-make-check_lib-cross-friendly.patch
@@ -14,15 +14,14 @@  Signed-off-by: Tim Orling <tim.orling@konsulko.com>
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/Makefile.PL b/Makefile.PL
-index 1344fe9..748a7d1 100644
 --- a/Makefile.PL
 +++ b/Makefile.PL
-@@ -85,7 +85,7 @@ if ( !$expat_libpath && !$expat_incpath ) {
- 
- unless (
-     check_lib(    # fill in what you prompted the user for here
--        lib     => [qw(expat)],
-+        #lib     => [qw(expat)],
-         header  => ['expat.h'],
-         incpath => $expat_incpath,
-         ( $expat_libpath ? ( libpath => $expat_libpath ) : () ),
+@@ -95,7 +95,7 @@
+ for my $candidate (@expat_lib_candidates) {
+     if (
+         check_lib(
+-            lib     => [$candidate],
++            #lib     => [$candidate],
+             header  => ['expat.h'],
+             incpath => $expat_incpath,
+             ( $expat_libpath ? ( libpath => $expat_libpath ) : () ),
diff --git a/meta/recipes-devtools/perl/libxml-parser-perl_2.59.bb b/meta/recipes-devtools/perl/libxml-parser-perl_2.61.bb
similarity index 93%
rename from meta/recipes-devtools/perl/libxml-parser-perl_2.59.bb
rename to meta/recipes-devtools/perl/libxml-parser-perl_2.61.bb
index 480276d1fd..036734a7e2 100644
--- a/meta/recipes-devtools/perl/libxml-parser-perl_2.59.bb
+++ b/meta/recipes-devtools/perl/libxml-parser-perl_2.61.bb
@@ -16,7 +16,7 @@  DEPENDS += "expat libfile-sharedir-install-perl-native"
 SRC_URI = "${CPAN_MIRROR}/authors/id/T/TO/TODDR/XML-Parser-${PV}.tar.gz \
            file://0001-Makefile.PL-make-check_lib-cross-friendly.patch \
            "
-SRC_URI[sha256sum] = "a358fd7c49f5e27717a644a9102bd21dc7fc25a415983279c59b1580e2b62a58"
+SRC_URI[sha256sum] = "d9ff14ec95b1437c28e98767a5999d294f5e37f07447b72c0932d30ab1e74311"
 
 S = "${UNPACKDIR}/XML-Parser-${PV}"
 
@@ -49,11 +49,13 @@  RDEPENDS:${PN} += "\
     libfile-sharedir-perl \
     perl-module-carp \
     perl-module-file-spec \
+    perl-module-overload \
     perl-module-scalar-util \
     perl-module-warnings \
 "
 RDEPENDS:${PN}-ptest += "\
     perl-module-config \
+    perl-module-cwd \
     perl-module-file-temp \
     perl-module-filehandle \
     perl-module-if \