[libinline-c-perl] 07/09: Add patch to make t/27inline_maker.t work with older versions of EUMM.
gregor herrmann
gregoa at debian.org
Thu Jun 25 21:31:18 UTC 2015
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libinline-c-perl.
commit 38ad9c596f047b3072c65e3eec2e20b9ece12181
Author: gregor herrmann <gregoa at debian.org>
Date: Thu Jun 25 23:20:29 2015 +0200
Add patch to make t/27inline_maker.t work with older versions of EUMM.
ExtUtils::MakeMaker 7.00 is in perl core since 5.21.6. but being able to
build the packacke with 5.20.2 seems helpful.
---
debian/patches/EUMM.patch | 33 +++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 34 insertions(+)
diff --git a/debian/patches/EUMM.patch b/debian/patches/EUMM.patch
new file mode 100644
index 0000000..d58b3f8
--- /dev/null
+++ b/debian/patches/EUMM.patch
@@ -0,0 +1,33 @@
+Description: make test work with older EUMM versions
+Origin: vendor
+Forwarded: not-needed
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2015-06-25
+
+--- a/t/27inline_maker.t
++++ b/t/27inline_maker.t
+@@ -9,6 +9,7 @@
+ use Cwd;
+ use File::Copy::Recursive qw(rcopy);
+ use autodie;
++use ExtUtils::MakeMaker;
+
+ my @make_targets = qw(test install);
+ my $CLEANUP = 1;
+@@ -25,8 +26,14 @@
+
+ my $lib_dir = File::Spec->rel2abs('lib');
+ my $base_dir = File::Spec->rel2abs($TestInlineSetup::DIR);
+-my $src_dir = File::Spec->catdir($base_dir, 'src dir');
+-my $inst_dir = File::Spec->catdir($base_dir, 'inst dir');
++my ($src_dir, $inst_dir);
++if ($ExtUtils::MakeMaker::VERSION >= 7.00) {
++ $src_dir = File::Spec->catdir($base_dir, 'src dir');
++ $inst_dir = File::Spec->catdir($base_dir, 'inst dir');
++} else {
++ $src_dir = File::Spec->catdir($base_dir, 'srcdir');
++ $inst_dir = File::Spec->catdir($base_dir, 'instdir');
++}
+ mkpath $inst_dir;
+
+ my $cwd = getcwd;
diff --git a/debian/patches/series b/debian/patches/series
index 763d83f..190c392 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
fix-pod-paths.patch
+EUMM.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libinline-c-perl.git
More information about the Pkg-perl-cvs-commits
mailing list