ppisar pushed to perl-Module-Install-TestTarget (master). "Adjust tests to ExtUtils-MakeMaker-6.07"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Sep 3 13:53:59 UTC 2015


From eb70a78523cf3f748f9bec7c03696842bfac8a85 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
Date: Thu, 3 Sep 2015 15:36:16 +0200
Subject: Adjust tests to ExtUtils-MakeMaker-6.07


diff --git a/Module-Install-TestTarget-0.19-Adapt-to-ExtUtils-MakeMaker-6.07.patch b/Module-Install-TestTarget-0.19-Adapt-to-ExtUtils-MakeMaker-6.07.patch
new file mode 100644
index 0000000..3e8f61c
--- /dev/null
+++ b/Module-Install-TestTarget-0.19-Adapt-to-ExtUtils-MakeMaker-6.07.patch
@@ -0,0 +1,39 @@
+From 65f0a251c081efa3cca725621f5a5c2ce545fdbf Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
+Date: Thu, 3 Sep 2015 15:31:55 +0200
+Subject: [PATCH] Adapt to ExtUtils-MakeMaker-6.07
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+ExtUtils-MakeMaker-6.07 changes format of generated Makefile,
+therefore a regular expression in t/Util.pm could not locate
+interested line and t/default_make_test/with_extra_tests.t test
+failed.
+
+This patch augemnts the regular expression to work with
+ExtUtils-MakeMaker-6.07 either.
+
+CPAN RT#106843
+
+Signed-off-by: Petr Písař <ppisar at redhat.com>
+---
+ t/Util.pm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/t/Util.pm b/t/Util.pm
+index 2757f4f..70b5904 100644
+--- a/t/Util.pm
++++ b/t/Util.pm
+@@ -38,7 +38,7 @@ sub find_make_test_command {
+         open my $fh, '<', 'Makefile' or die "Cannot open 'Makefile' for reading: $!";
+         my $regex = _regex(keys %$target);
+         while (<$fh>) {
+-            next unless /^ ($regex) \s+ :: \s+ (?:pure_all|$regex) /xms;
++            next unless /^ ($regex) \s+ :: \s+ (?:pure_all|$regex|subdirs-(?:$regex)) /xms;
+             $commands->{$1} = scalar <$fh>;
+             delete $target->{$1};
+             my @target = keys %$target;
+-- 
+2.4.3
+
diff --git a/perl-Module-Install-TestTarget.spec b/perl-Module-Install-TestTarget.spec
index c47d705..dcc45c7 100644
--- a/perl-Module-Install-TestTarget.spec
+++ b/perl-Module-Install-TestTarget.spec
@@ -1,11 +1,13 @@
 Name:           perl-Module-Install-TestTarget
 Version:        0.19
-Release:        7%{?dist}
+Release:        8%{?dist}
 Summary:        Assembles custom test targets for make
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Module-Install-TestTarget/
 Source0:        http://www.cpan.org/authors/id/X/XA/XAICRON/Module-Install-TestTarget-%{version}.tar.gz
+# Adjust tests to ExtUtils-MakeMaker-6.07, bug #1259401, CPAN RT#106843
+Patch0:         Module-Install-TestTarget-0.19-Adapt-to-ExtUtils-MakeMaker-6.07.patch
 BuildArch:      noarch
 BuildRequires:  perl
 BuildRequires:  perl(ExtUtils::MakeMaker)
@@ -44,6 +46,7 @@ various conditions.
 
 %prep
 %setup -q -n Module-Install-TestTarget-%{version}
+%patch0 -p1
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor
@@ -63,6 +66,9 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Thu Sep 03 2015 Petr Pisar <ppisar at redhat.com> - 0.19-8
+- Adjust tests to ExtUtils-MakeMaker-6.07 (bug #1259401)
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.19-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-Module-Install-TestTarget.git/commit/?h=master&id=eb70a78523cf3f748f9bec7c03696842bfac8a85


More information about the perl-devel mailing list