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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 01670ff6551dfdd83d90afaee038d86868d09d23
Author: Jitka Plesnikova <jplesnik@xxxxxxxxxx>
Date:   Thu Sep 18 09:46:55 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@xxxxxxxx>
+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 8791267..ec4c35f 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:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Create a module Makefile
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -14,6 +14,7 @@ Source0:        http://www.cpan.org/authors/id/B/BI/BINGOS/%{cpan_name}-%{cpan_v
 Patch0:         %{cpan_name}-6.72-USE_MM_LD_RUN_PATH.patch
 # Link to libperl.so explicitly. Bug #960048.
 Patch1:         %{cpan_name}-6.72-Link-to-libperl-explicitly-on-Linux.patch
+Patch2:         %{cpan_name}-6.78-do-not-set-default-switches-in-Test-Harness.patch
 BuildArch:      noarch
 BuildRequires:  perl
 # Makefile.Pl uses ExtUtils::MakeMaker from ./lib
@@ -87,6 +88,7 @@ Dougherty and the perl5-porters.
 %setup -q -n ExtUtils-MakeMaker-%{cpan_version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 # Remove bundled modules
 rm -rf bundled/* ||:
 sed -i -e '/^bundled\// d' MANIFEST
@@ -111,6 +113,9 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Thu Sep 18 2014 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 6.72-3
+- Do not set default switches in Test::Harnes (bug #1143822)
+
 * Mon Sep 16 2013 Petr Pisar <ppisar@xxxxxxxxxx> - 6.72-2
 - Specify all dependencies (bug #1007755)
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux