]> git.pld-linux.org Git - packages/perl-PerlIO-gzip.git/commitdiff
- fix building with perl 5.20
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 17 Sep 2014 05:55:43 +0000 (07:55 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 17 Sep 2014 05:55:43 +0000 (07:55 +0200)
config_usesfio.patch [new file with mode: 0644]
perl-PerlIO-gzip.spec

diff --git a/config_usesfio.patch b/config_usesfio.patch
new file mode 100644 (file)
index 0000000..8c325d6
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/Makefile.PL      2006-10-01 21:28:25.000000000 +0000
++++ b/Makefile.PL      2014-01-23 15:40:56.784222851 +0000
+@@ -4,7 +4,8 @@
+ use ExtUtils::MakeMaker;
+ use Config;
+-unless ($Config{useperlio} eq 'define' and $Config{usesfio} eq 'false') {
++unless ($Config{useperlio} eq 'define' and
++      (defined($Config{usesfio}) ? $Config{usesfio} : 'false') eq 'false') {
+   die <<BARF;
+ You need perl 5.8.0 or later, configured to use perlio (and not to use sfio)
+ BARF
index 10be30353d5d9a6d0fde7b87688ba1db6e74fa07..d672a6bf3ce4b0a7a8547a56293bbeb9ec3fe951 100644 (file)
@@ -15,6 +15,7 @@ License:      GPL v1+ or Artistic
 Group:         Development/Languages/Perl
 Source0:       http://search.cpan.org/CPAN/authors/id/N/NW/NWCLARK/%{pdir}-%{pnam}-%{version}.tar.gz
 # Source0-md5: 933fdf283a0d2739f7630420569e3b24
+Patch0:                config_usesfio.patch
 URL:           http://search.cpan.org/dist/PerlIO-gzip/
 BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: rpm-perlprov >= 4.1-13
@@ -32,6 +33,7 @@ plikach w formatach używanych przez program gzip.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
 
 %build
 %{__perl} Makefile.PL \
This page took 0.093453 seconds and 4 git commands to generate.