From 4e92c106ea90a8a76824203c41bfe83ceaf9740a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com> Date: Wed, 12 Oct 2016 14:32:00 +0200 Subject: Fix "cpan -O" invocation
--- CPAN-2.14-Emergency-fix-for-cpan-o.patch | 31 +++++++++++++++++++++++++++++++ perl-CPAN.spec | 4 ++++ 2 files changed, 35 insertions(+) create mode 100644 CPAN-2.14-Emergency-fix-for-cpan-o.patch diff --git a/CPAN-2.14-Emergency-fix-for-cpan-o.patch b/CPAN-2.14-Emergency-fix-for-cpan-o.patch new file mode 100644 index 0000000..ccbf309 --- /dev/null +++ b/CPAN-2.14-Emergency-fix-for-cpan-o.patch @@ -0,0 +1,31 @@ +From cbf4929aeba4b5c8fa4b6151655d5206b54e758e Mon Sep 17 00:00:00 2001 +From: Andreas Koenig <a...@cpan.org> +Date: Fri, 8 Jul 2016 21:37:54 +0200 +Subject: [PATCH] Emergency fix for bug + https://rt.cpan.org/Ticket/Display.html?id=115786 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Petr Písař <ppi...@redhat.com> +--- + lib/App/Cpan.pm | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/lib/App/Cpan.pm b/lib/App/Cpan.pm +index d770bf5..268c49d 100644 +--- a/lib/App/Cpan.pm ++++ b/lib/App/Cpan.pm +@@ -1336,7 +1336,8 @@ sub _show_out_of_date + + foreach my $module ( @$modules ) + { +- next unless $module->inst_file; ++ next unless $module = _expand_module($module); ++ next unless $module->inst_file; + next if $module->uptodate; + printf "%-40s %.4f %.4f\n", + $module->id, +-- +2.7.4 + diff --git a/perl-CPAN.spec b/perl-CPAN.spec index a1861e6..ef68069 100644 --- a/perl-CPAN.spec +++ b/perl-CPAN.spec @@ -12,6 +12,8 @@ Patch0: CPAN-2.14-Attemp-to-create-site-library-directories-on-first-t.p Patch1: CPAN-2.14-Replace-configuration-directory-string-with-a-marke.patch # Fix installation from a working directory, CPAN RT#115734, fixed after 2.14 Patch2: CPAN-2.14-Emergency-fix-for-bug-https-rt.cpan.org-Ticket-Displ.patch +# Fix "cpan -O" invocation, CPAN RT#115786, fixed after 2.14 +Patch3: CPAN-2.14-Emergency-fix-for-cpan-o.patch BuildArch: noarch BuildRequires: coreutils BuildRequires: findutils @@ -190,6 +192,7 @@ external download clients to fetch distributions from the net. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 # Change configuration name find -type f -exec sed -i -e 's/XCPANCONFIGNAMEX/cpan/g' {} \; # Remove bundled modules @@ -219,6 +222,7 @@ make test * Mon Jun 27 2016 Petr Pisar <ppi...@redhat.com> - 2.14-1 - 2.14 bump - Fix installation from a working directory (CPAN RT#115734) +- Fix "cpan -O" invocation (CPAN RT#115786) * Wed May 18 2016 Jitka Plesnikova <jples...@redhat.com> - 2.11-366 - Perl 5.24 re-rebuild of bootstrapped packages -- cgit v0.12 http://pkgs.fedoraproject.org/cgit/perl-CPAN.git/commit/?h=master&id=4e92c106ea90a8a76824203c41bfe83ceaf9740a _______________________________________________ perl-devel mailing list -- perl-devel@lists.fedoraproject.org To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org