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@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@gentoo.org>
This commit is contained in:
Holger Hoffstätte
2025-10-13 12:04:29 +02:00
committed by Sam James
parent 49ae4f62b3
commit 2bf06e92f1
2 changed files with 50 additions and 0 deletions

View File

@@ -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() {

View File

@@ -0,0 +1,49 @@
https://github.com/shlomif/perl-XML-LibXML/pull/87
From: Nick Wellnhofer <wellnhofer@aevum.de>
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: {