[packages/perl-Perl-Strip] Up to 1.2

arekm arekm at pld-linux.org
Thu Nov 19 12:32:30 CET 2026


commit f9d5ac7bf4b8494fea61d8b8d961cbb6557498cf
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 19 00:54:13 2026 +0100

    Up to 1.2

 perl-Perl-Strip-indirect.patch | 22 ++++++++++++++++++++++
 perl-Perl-Strip.spec           |  9 ++++++---
 2 files changed, 28 insertions(+), 3 deletions(-)
---
diff --git a/perl-Perl-Strip.spec b/perl-Perl-Strip.spec
index fcc4cf8..dac4287 100644
--- a/perl-Perl-Strip.spec
+++ b/perl-Perl-Strip.spec
@@ -6,13 +6,15 @@
 %define		pnam	Strip
 Summary:	Perl::Strip - reduce file size by stripping whitespace, comments, pod etc.
 Name:		perl-Perl-Strip
-Version:	1.1
-Release:	2
+Version:	1.2
+Release:	1
 # same as perl
 License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/Perl/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5:	23a6302ad6e09fe45ccb720b37c9875e
+# Source0-md5:	55a81a6c614f6b3f1161a98be5dbb748
+# indirect object syntax is a syntax error in perl 5.44
+Patch0:		%{name}-indirect.patch
 URL:		http://search.cpan.org/dist/Perl-Strip/
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
@@ -37,6 +39,7 @@ App::Staticperl, boot floppy/CDs/flash environments and so on.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch -P0 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/perl-Perl-Strip-indirect.patch b/perl-Perl-Strip-indirect.patch
new file mode 100644
index 0000000..d7c3ddb
--- /dev/null
+++ b/perl-Perl-Strip-indirect.patch
@@ -0,0 +1,22 @@
+--- a/Strip.pm
++++ b/Strip.pm
+@@ -243,7 +243,7 @@
+    my ($self, $src) = @_;
+ 
+    my $filter = sub {
+-      my $ppi = new PPI::Document \$src
++      my $ppi = PPI::Document->new (\$src)
+          or return;
+ 
+       $self->document ($ppi)
+--- a/bin/perlstrip
++++ b/bin/perlstrip
+@@ -134,7 +134,7 @@
+ 
+       printf "%d ", length $src if $VERBOSE;
+ 
+-      $src = (new Perl::Strip @cache, optimise_size => $OPTIMISE_SIZE)->strip ($src);
++      $src = (Perl::Strip->new (@cache, optimise_size => $OPTIMISE_SIZE))->strip ($src);
+ 
+       printf "to %d bytes... ", length $src if $VERBOSE;
+       print $output eq $file ? "writing... " : "saving as $output... " if $VERBOSE;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Perl-Strip.git/commitdiff/f9d5ac7bf4b8494fea61d8b8d961cbb6557498cf



More information about the pld-cvs-commit mailing list