[perl-ExtUtils-MakeMaker/f19] Do not set default switches in Test::Harnes (bug #1143822)

Jitka Plesnikova jplesnik at fedoraproject.org
Thu Sep 18 07:14:38 UTC 2014


commit 78648bd9db9a40ac59d2dced156db237df00f4ac
Author: Jitka Plesnikova <jplesnik at redhat.com>
Date:   Thu Sep 18 09:14:25 2014 +0200

    Do not set default switches in Test::Harnes (bug #1143822)

 ...-not-set-default-switches-in-Test-Harness.patch |   27 ++++++++++++++++++++
 perl-ExtUtils-MakeMaker.spec                       |    7 ++++-
 2 files changed, 33 insertions(+), 1 deletions(-)
---
diff --git a/ExtUtils-MakeMaker-6.78-do-not-set-default-switches-in-Test-Harness.patch b/ExtUtils-MakeMaker-6.78-do-not-set-default-switches-in-Test-Harness.patch
new file mode 100644
index 0000000..b26f739
--- /dev/null
+++ b/ExtUtils-MakeMaker-6.78-do-not-set-default-switches-in-Test-Harness.patch
@@ -0,0 +1,27 @@
+From 37c20b4442e87cb678301cf742604f23a8d30a82 Mon Sep 17 00:00:00 2001
+From: Ricardo Signes <rjbs at cpan.org>
+Date: Sat, 21 Sep 2013 10:12:51 +0900
+Subject: [PATCH] do not set default switches in Test::Harness; not even -w
+
+---
+ lib/ExtUtils/MM_Any.pm | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/lib/ExtUtils/MM_Any.pm b/lib/ExtUtils/MM_Any.pm
+index 067aa50..740cf46 100644
+--- a/lib/ExtUtils/MM_Any.pm
++++ b/lib/ExtUtils/MM_Any.pm
+@@ -2366,8 +2366,8 @@ Used on the t/*.t files.
+ sub test_via_harness {
+     my($self, $perl, $tests) = @_;
+ 
+-    return qq{\t$perl "-MExtUtils::Command::MM" }.
+-           qq{"-e" "test_harness(\$(TEST_VERBOSE), '\$(INST_LIB)', '\$(INST_ARCHLIB)')" $tests\n};
++    return qq{\t$perl "-MExtUtils::Command::MM" "-MTest::Harness" }.
++           qq{"-e" "undef *Test::Harness::Switches; test_harness(\$(TEST_VERBOSE), '\$(INST_LIB)', '\$(INST_ARCHLIB)')" $tests\n};
+ }
+ 
+ =head3 test_via_script
+-- 
+1.9.3
+
diff --git a/perl-ExtUtils-MakeMaker.spec b/perl-ExtUtils-MakeMaker.spec
index 4460f51..e9e16b0 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:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Create a module Makefile
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -12,6 +12,7 @@ Source0:        http://www.cpan.org/authors/id/M/MS/MSCHWERN/%{cpan_name}-%{cpan
 # Do not set RPATH to perl shared-library modules by default. Bug #773622.
 # This is copy from `perl' package. This is distributor extension.
 Patch0:         %{cpan_name}-6.64-USE_MM_LD_RUN_PATH.patch
+Patch1:         ExtUtils-MakeMaker-6.78-do-not-set-default-switches-in-Test-Harness.patch
 BuildArch:      noarch
 # Makefile.Pl uses ExtUtils::MakeMaker from ./lib
 BuildRequires:  perl(Carp)
@@ -75,6 +76,7 @@ Dougherty and the perl5-porters.
 %prep
 %setup -q -n ExtUtils-MakeMaker-%{cpan_version}
 %patch0 -p1
+%patch1 -p1
 # Remove bundled modules
 rm -rf bundled/* ||:
 sed -i -e '/^bundled\// d' MANIFEST
@@ -99,6 +101,9 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Thu Sep 18 2014 Jitka Plesnikova <jplesnik at redhat.com> - 6.64-4
+- Do not set default switches in Test::Harnes (bug #1143822)
+
 * Mon Sep 16 2013 Petr Pisar <ppisar at redhat.com> - 6.64-3
 - Specify all dependencies (bug #1007755)
 


More information about the scm-commits mailing list