From b94ee64ee581135078b158bb6c096b825f11aed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= ppisar@redhat.com Date: Fri, 22 Apr 2016 13:55:55 +0200 Subject: Adjust tests to ExtUtils-MakeMaker-7.12
--- ...63-Fix-tests-with-ExtUtils-MakeMaker-7.12.patch | 41 ++++++++++++++++++++++ perl-ExtUtils-AutoInstall.spec | 8 ++++- 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 ExtUtils-AutoInstall-0.63-Fix-tests-with-ExtUtils-MakeMaker-7.12.patch
diff --git a/ExtUtils-AutoInstall-0.63-Fix-tests-with-ExtUtils-MakeMaker-7.12.patch b/ExtUtils-AutoInstall-0.63-Fix-tests-with-ExtUtils-MakeMaker-7.12.patch new file mode 100644 index 0000000..58f4ac7 --- /dev/null +++ b/ExtUtils-AutoInstall-0.63-Fix-tests-with-ExtUtils-MakeMaker-7.12.patch @@ -0,0 +1,41 @@ +From 86e1abc218fb35de7fc7bc58ed19cded39fba8cc Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= ppisar@redhat.com +Date: Fri, 22 Apr 2016 13:50:24 +0200 +Subject: [PATCH] Fix tests with ExtUtils-MakeMaker-7.12 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Since EU::MM 7.12, strict subs are in effect resulting in this test failure: + +[test@fedora-25 ExtUtils-AutoInstall-0.63]$ perl -Ilib t/1-basic.t +1..6 +Bareword "Symbol::gensym" not allowed while "strict subs" in use at t/1-basic.t. +Execution of t/1-basic.t aborted due to compilation errors. + +This parch changes how Symbol module is loaded to silent the warning / +compile time error. + +CPAN RT#113923 + +Signed-off-by: Petr Písař ppisar@redhat.com +--- + t/1-basic.t | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/t/1-basic.t b/t/1-basic.t +index 8718c43..00ffbd9 100644 +--- a/t/1-basic.t ++++ b/t/1-basic.t +@@ -21,7 +21,7 @@ sub PRINTF { my $self = shift; $$self .= sprintf(shift, @_); } + sub TIEHANDLE { my $self = ''; return bless $self, shift; } + sub READ {} sub READLINE {} sub GETC {} sub FILENO {} + +-require Symbol; ++use Symbol (); + my $fh = Symbol::gensym; + my $out = tie *$fh, __PACKAGE__; + select(*$fh); +-- +2.5.5 + diff --git a/perl-ExtUtils-AutoInstall.spec b/perl-ExtUtils-AutoInstall.spec index e5fcc84..ba85779 100644 --- a/perl-ExtUtils-AutoInstall.spec +++ b/perl-ExtUtils-AutoInstall.spec @@ -1,12 +1,14 @@ Name: perl-ExtUtils-AutoInstall Version: 0.63 -Release: 30%{?dist} +Release: 31%{?dist} Summary: Automatic install of dependencies via CPAN License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/ExtUtils-AutoInstall/ Source: http://search.cpan.org/CPAN/authors/id/A/AU/AUTRIJUS/ExtUtils-AutoInstall-%%... Patch0: eai.patch +# Adjust tests to ExtUtils-MakeMaker-7.12, bug #1329085, CPAN RT#113923 +Patch1: ExtUtils-AutoInstall-0.63-Fix-tests-with-ExtUtils-MakeMaker-7.12.patch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch @@ -38,6 +40,7 @@ ExtUtils::MakeMaker. %prep %setup -q -n ExtUtils-AutoInstall-%{version} %patch0 -p1 +%patch1 -p1
%build %{__perl} Makefile.PL INSTALLDIRS=vendor --defaultdeps NO_PACKLIST=1 @@ -57,6 +60,9 @@ make test %{_mandir}/man3/*
%changelog +* Fri Apr 22 2016 Petr Pisar ppisar@redhat.com - 0.63-31 +- Adjust tests to ExtUtils-MakeMaker-7.12 (bug #1329085) + * Thu Feb 04 2016 Fedora Release Engineering releng@fedoraproject.org - 0.63-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
perl-devel@lists.fedoraproject.org