[packages/perl-Makefile-DOM] Rel 2: fix tests with pure Perl List::MoreUtils
arekm
arekm at pld-linux.org
Thu Nov 19 14:02:24 CET 2026
commit ab5422c491e3611bdcb5d5d66a931c179947c180
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 19 12:31:58 2026 +0100
Rel 2: fix tests with pure Perl List::MoreUtils
perl-Makefile-DOM-pp-any.patch | 13 +++++++++++++
perl-Makefile-DOM.spec | 4 +++-
2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/perl-Makefile-DOM.spec b/perl-Makefile-DOM.spec
index 636bd61..40bd0c1 100644
--- a/perl-Makefile-DOM.spec
+++ b/perl-Makefile-DOM.spec
@@ -8,12 +8,13 @@ Summary: Makefile::DOM - Simple DOM parser for Makefiles
Summary(pl.UTF-8): Makefile::DOM - prosty analizator DOM dla plików Makefile
Name: perl-Makefile-DOM
Version: 0.008
-Release: 1
+Release: 2
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-authors/id/A/AG/AGENT/Makefile-DOM-%{version}.tar.gz
# Source0-md5: b66db82caca508a571d1eed345de89f3
+Patch0: %{name}-pp-any.patch
URL: http://search.cpan.org/dist/Makefile-DOM/
BuildRequires: perl-ExtUtils-MakeMaker >= 6.42
BuildRequires: perl-devel >= 1:5.8.0
@@ -53,6 +54,7 @@ perlowych czy modułu HTML::TreeBuilder przy analizie źródeł HTML.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch -P0 -p1
# fails
%{__rm} t/pod-coverage.t
diff --git a/perl-Makefile-DOM-pp-any.patch b/perl-Makefile-DOM-pp-any.patch
new file mode 100644
index 0000000..16c5935
--- /dev/null
+++ b/perl-Makefile-DOM-pp-any.patch
@@ -0,0 +1,13 @@
+# List::MoreUtils::any (pure Perl) does not pass @_ to the block; XS only happens to expose the caller @_
+--- Makefile-DOM-0.008/lib/MDOM/Document/Gmake.pm.orig
++++ Makefile-DOM-0.008/lib/MDOM/Document/Gmake.pm
+@@ -471,7 +471,8 @@
+ }
+
+ sub _is_keyword {
+- any { $_[0] eq $_ } @keywords;
++ my $word = shift;
++ any { $word eq $_ } @keywords;
+ }
+
+ 1;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Makefile-DOM.git/commitdiff/ab5422c491e3611bdcb5d5d66a931c179947c180
More information about the pld-cvs-commit
mailing list