Fix building on Perl without '.' in @INC (CPAN RT#120086)

This commit is contained in:
Jitka Plesnikova 2017-05-17 14:39:25 +02:00
parent 96d40ff080
commit 6f8e6aaf53
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up AnyEvent-7.13/Makefile.PL.orig AnyEvent-7.13/Makefile.PL
--- AnyEvent-7.13/Makefile.PL.orig 2017-05-17 14:33:30.966186261 +0200
+++ AnyEvent-7.13/Makefile.PL 2017-05-17 14:34:13.414007081 +0200
@@ -22,7 +22,7 @@ print <<EOF;
EOF
-do "constants.pl.PL"
+do "./constants.pl.PL"
or die "cannot execute constants.pl.PL: $@";
WriteMakefile(

View File

@ -8,13 +8,14 @@
Name: perl-AnyEvent
Version: 7.13
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Framework for multiple event loops
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/AnyEvent/
Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-%{version}%{?subver}.tar.gz
Patch0: AnyEvent-7.13-ssl.patch
Patch1: AnyEvent-7.13-Fix-building-on-Perl-without-dot-in-INC.patch
# Build requirements
BuildRequires: coreutils
@ -141,6 +142,9 @@ time).
# Fix segfault in SSL handling that manifests on OpenSSL 1.1.0 x86_64
%patch0
# Fix building on Perl without '.' in @INC
%patch1 -p1
%build
PERL_CANARY_STABILITY_NOPROMPT=1 perl Makefile.PL INSTALLDIRS=vendor
@ -197,6 +201,9 @@ make test
%changelog
* Wed May 17 2017 Jitka Plesnikova <jplesnik@redhat.com> - 7.13-6
- Fix building on Perl without '.' in @INC
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 7.13-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild