[packages/perl-PAR-Packer] fix build on x32; rel 8

atler atler at pld-linux.org
Tue Aug 23 14:38:17 CEST 2022


commit 3c04c20ef411c978956a51f6868046969122a3be
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Aug 23 14:38:02 2022 +0200

    fix build on x32; rel 8

 perl-PAR-Packer.spec |  4 +++-
 x32.patch            | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/perl-PAR-Packer.spec b/perl-PAR-Packer.spec
index 45f6f7d..e895351 100644
--- a/perl-PAR-Packer.spec
+++ b/perl-PAR-Packer.spec
@@ -8,12 +8,13 @@ Summary:	PAR::Packer - PAR Packager
 #Summary(pl.UTF-8):	
 Name:		perl-PAR-Packer
 Version:	1.045
-Release:	7
+Release:	8
 # same as perl
 License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/PAR/%{pdir}-%{pnam}-%{version}.tar.gz
 # Source0-md5:	a3333754b0112ee8fe80083042b89a3b
+Patch0:		x32.patch
 URL:		http://search.cpan.org/dist/PAR-Packer/
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
@@ -47,6 +48,7 @@ PAR files, perl scripts or executables.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/x32.patch b/x32.patch
new file mode 100644
index 0000000..5b3853c
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,11 @@
+--- PAR-Packer-1.045/myldr/find_files_to_embed/ldd.pl.orig	2017-10-10 15:34:51.000000000 +0200
++++ PAR-Packer-1.045/myldr/find_files_to_embed/ldd.pl	2022-08-23 14:33:56.099235502 +0200
+@@ -18,7 +18,7 @@
+     }
+     else
+     {
+-        *is_system_lib = sub { shift =~ m{^(?:/usr)?/lib(?:32|64)?/} };
++        *is_system_lib = sub { shift =~ m{^(?:/usr)?/lib(?:32|64|x32)?/} };
+     }
+ 
+     my $dlls = ldd($par); 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-PAR-Packer.git/commitdiff/3c04c20ef411c978956a51f6868046969122a3be



More information about the pld-cvs-commit mailing list