commit: 2bf06e92f18295a006a272f599885bef78e3efa3 Author: Holger Hoffstätte <holger <AT> applied-asynchrony <DOT> com> AuthorDate: Mon Oct 13 10:04:29 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Oct 13 10:16:25 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bf06e92
dev-perl/XML-LibXML: add patch to fix tests with libxml-2.15 Closes: https://bugs.gentoo.org/964257 Signed-off-by: Holger Hoffstätte <holger <AT> applied-asynchrony.com> Part-of: https://github.com/gentoo/gentoo/pull/44160 Closes: https://github.com/gentoo/gentoo/pull/44160 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-perl/XML-LibXML/XML-LibXML-2.21.0.ebuild | 1 + .../files/XML-LibXML-2.21.0-libxml2-2.15.patch | 49 ++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/dev-perl/XML-LibXML/XML-LibXML-2.21.0.ebuild b/dev-perl/XML-LibXML/XML-LibXML-2.21.0.ebuild index 279439063d94..fde7941a9240 100644 --- a/dev-perl/XML-LibXML/XML-LibXML-2.21.0.ebuild +++ b/dev-perl/XML-LibXML/XML-LibXML-2.21.0.ebuild @@ -50,6 +50,7 @@ PERL_RM_FILES=( PATCHES=( "${FILESDIR}"/${PN}-2.21.0-libxml2-2.13.patch "${FILESDIR}"/${PN}-2.21.0-libxml2-2.14.patch + "${FILESDIR}"/${PN}-2.21.0-libxml2-2.15.patch ) src_compile() { diff --git a/dev-perl/XML-LibXML/files/XML-LibXML-2.21.0-libxml2-2.15.patch b/dev-perl/XML-LibXML/files/XML-LibXML-2.21.0-libxml2-2.15.patch new file mode 100644 index 000000000000..6f759424f053 --- /dev/null +++ b/dev-perl/XML-LibXML/files/XML-LibXML-2.21.0-libxml2-2.15.patch @@ -0,0 +1,49 @@ +https://github.com/shlomif/perl-XML-LibXML/pull/87 + +From: Nick Wellnhofer <[email protected]> +Date: Fri, 16 May 2025 19:11:12 +0200 +Subject: [PATCH] Remove tests that disable line numbers + +Line numbers are always enabled since libxml2 2.15.0. +--- + t/02parse.t | 13 ++----------- + 1 file changed, 2 insertions(+), 11 deletions(-) + +diff --git a/t/02parse.t b/t/02parse.t +index 40aa5f1..17419f8 100644 +--- a/t/02parse.t ++++ b/t/02parse.t +@@ -14,7 +14,7 @@ use locale; + + POSIX::setlocale(LC_ALL, "C"); + +-use Test::More tests => 533; ++use Test::More tests => 531; + use IO::File; + + use XML::LibXML::Common qw(:libxml); +@@ -25,7 +25,7 @@ use constant XML_DECL => "<?xml version=\"1.0\"?>\n"; + + use Errno qw(ENOENT); + +-# TEST*533 ++# TEST*531 + + ## + # test values +@@ -773,15 +773,6 @@ EOXML + + my $newkid = $root->appendChild( $doc->createElement( "bar" ) ); + is( $newkid->line_number(), 0, "line number is 0"); +- +- $parser->line_numbers(0); +- eval { $doc = $parser->parse_string( $goodxml ); }; +- +- $root = $doc->documentElement(); +- is( $root->line_number(), 0, "line number is 0"); +- +- @kids = $root->childNodes(); +- is( $kids[1]->line_number(), 0, "line number is 0"); + } + + SKIP: {
