jplesnik pushed to perl-ExtUtils-MakeMaker (master). "Remove new line from INC (CPAN RT#106808)"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Sep 1 12:47:32 UTC 2015


From 9ac29b40bb2f4653512628edf8b873fe6ceda344 Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <jplesnik at redhat.com>
Date: Tue, 1 Sep 2015 14:47:13 +0200
Subject: Remove new line from INC (CPAN RT#106808)


diff --git a/ExtUtils-MakeMaker-7.06-Remove-new-line-from-INC.patch b/ExtUtils-MakeMaker-7.06-Remove-new-line-from-INC.patch
new file mode 100644
index 0000000..727c7d2
--- /dev/null
+++ b/ExtUtils-MakeMaker-7.06-Remove-new-line-from-INC.patch
@@ -0,0 +1,12 @@
+diff -up ExtUtils-MakeMaker-7.06/lib/ExtUtils/MM_Unix.pm.orig ExtUtils-MakeMaker-7.06/lib/ExtUtils/MM_Unix.pm
+--- ExtUtils-MakeMaker-7.06/lib/ExtUtils/MM_Unix.pm.orig	2015-09-01 13:10:14.810680431 +0200
++++ ExtUtils-MakeMaker-7.06/lib/ExtUtils/MM_Unix.pm	2015-09-01 14:03:30.587696052 +0200
+@@ -2948,7 +2948,7 @@ sub pasthru {
+         my $val = qq{\$($key)};
+         # expand within perl if given since need to use quote_literal
+         # since INC might include space-protecting ""!
+-        $val = $self->{$key} if defined $self->{$key};
++        chomp($val = $self->{$key}) if defined $self->{$key};
+         $val .= " \$(PASTHRU_$key)";
+         my $quoted = $self->quote_literal($val);
+         push @pasthru, qq{PASTHRU_$key=$quoted};
diff --git a/perl-ExtUtils-MakeMaker.spec b/perl-ExtUtils-MakeMaker.spec
index 3174b2a..c301584 100644
--- a/perl-ExtUtils-MakeMaker.spec
+++ b/perl-ExtUtils-MakeMaker.spec
@@ -3,7 +3,7 @@
 
 Name:           perl-%{cpan_name}
 Version:        %(echo '%{cpan_version}' | tr _ .)
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Create a module Makefile
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -18,6 +18,8 @@ Patch1:         %{cpan_name}-7.06-Link-to-libperl-explicitly-on-Linux.patch
 Patch2:         %{cpan_name}-7.04-Unbundle-version.patch
 # Unbundle Encode::Locale module
 Patch3:         %{cpan_name}-7.00-Unbundle-Encode-Locale.patch
+# Remove new line from INC - CPAN RT#106808
+Patch4:         %{cpan_name}-7.06-Remove-new-line-from-INC.patch
 BuildArch:      noarch
 BuildRequires:  coreutils
 BuildRequires:  findutils
@@ -141,6 +143,7 @@ easier to deal with in Makefiles.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 # Remove bundled modules
 rm -rf bundled
 sed -i -e '/^bundled\// d' MANIFEST
@@ -178,6 +181,9 @@ make test
 %{_mandir}/man3/ExtUtils::Command.*
 
 %changelog
+* Tue Sep 01 2015 Jitka Plesnikova <jplesnik at redhat.com> - 7.06-2
+- Remove new line from INC (CPAN RT#106808)
+
 * Tue Sep 01 2015 Petr Pisar <ppisar at redhat.com> - 7.06-1
 - 7.06 bump
 - ExtUtils::Command module is distributed by ExtUtils-MakeMaker
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-ExtUtils-MakeMaker.git/commit/?h=master&id=9ac29b40bb2f4653512628edf8b873fe6ceda344


More information about the perl-devel mailing list