summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Fredric <kentnl@gentoo.org>2017-10-21 13:28:08 +1300
committerKent Fredric <kentnl@gentoo.org>2017-10-21 13:28:47 +1300
commita4bc5e4c83e631f85dabb3ae29b90fdc92539a19 (patch)
treec1a7dccbb2694c0904c55ba56a17a10c77495e7c /dev-perl/ExtUtils-CppGuess
parentmedia-libs/mesa: Require libdrm-2.4.85 (diff)
downloadgentoo-a4bc5e4c83e631f85dabb3ae29b90fdc92539a19.tar.gz
gentoo-a4bc5e4c83e631f85dabb3ae29b90fdc92539a19.tar.bz2
gentoo-a4bc5e4c83e631f85dabb3ae29b90fdc92539a19.zip
dev-perl/ExtUtils-CppGuess: Fix test failures without '.' in @INC bug #615842
Closes: https://bugs.gentoo.org/615842 Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'dev-perl/ExtUtils-CppGuess')
-rw-r--r--dev-perl/ExtUtils-CppGuess/ExtUtils-CppGuess-0.110.0.ebuild3
-rw-r--r--dev-perl/ExtUtils-CppGuess/files/ExtUtils-CppGuess-0.110.0-no-dot-inc.patch56
2 files changed, 58 insertions, 1 deletions
diff --git a/dev-perl/ExtUtils-CppGuess/ExtUtils-CppGuess-0.110.0.ebuild b/dev-perl/ExtUtils-CppGuess/ExtUtils-CppGuess-0.110.0.ebuild
index 4e935faf7a25..1a45d3e0efba 100644
--- a/dev-perl/ExtUtils-CppGuess/ExtUtils-CppGuess-0.110.0.ebuild
+++ b/dev-perl/ExtUtils-CppGuess/ExtUtils-CppGuess-0.110.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -27,3 +27,4 @@ DEPEND="${RDEPEND}
dev-perl/Module-Build
)
"
+PATCHES=( "${FILESDIR}/${P}-no-dot-inc.patch" )
diff --git a/dev-perl/ExtUtils-CppGuess/files/ExtUtils-CppGuess-0.110.0-no-dot-inc.patch b/dev-perl/ExtUtils-CppGuess/files/ExtUtils-CppGuess-0.110.0-no-dot-inc.patch
new file mode 100644
index 000000000000..0bca84c1aad7
--- /dev/null
+++ b/dev-perl/ExtUtils-CppGuess/files/ExtUtils-CppGuess-0.110.0-no-dot-inc.patch
@@ -0,0 +1,56 @@
+From 2c89bb54f233776fb8760a264286f9e0932f62c6 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Sat, 21 Oct 2017 13:15:43 +1300
+Subject: Fix tests on 5.26 without '.' in @INC
+
+Bug: https://rt.cpan.org/Ticket/Display.html?id=120848
+Bug: https://bugs.gentoo.org/615842
+Bug: https://github.com/tsee/extutils-cppguess/pull/15
+---
+ t/010_module_build.t | 3 ++-
+ t/011_makemaker.t | 3 ++-
+ t/lib/TestUtils.pm | 3 ++-
+ 3 files changed, 6 insertions(+), 3 deletions(-)
+
+diff --git a/t/010_module_build.t b/t/010_module_build.t
+index 93b5f44..ef004d3 100644
+--- a/t/010_module_build.t
++++ b/t/010_module_build.t
+@@ -2,7 +2,8 @@
+
+ use strict;
+ use Test::More tests => 1;
+-use t::lib::TestUtils;
++use lib 't/lib';
++use TestUtils;
+
+ my $separator = ( '=' x 40 . "\n" );
+
+diff --git a/t/011_makemaker.t b/t/011_makemaker.t
+index 237636a..5986395 100644
+--- a/t/011_makemaker.t
++++ b/t/011_makemaker.t
+@@ -2,7 +2,8 @@
+
+ use strict;
+ use Test::More tests => 1;
+-use t::lib::TestUtils;
++use lib 't/lib';
++use TestUtils;
+
+ my $separator = ( '=' x 40 . "\n" );
+
+diff --git a/t/lib/TestUtils.pm b/t/lib/TestUtils.pm
+index c71572b..b3480c4 100644
+--- a/t/lib/TestUtils.pm
++++ b/t/lib/TestUtils.pm
+@@ -1,4 +1,5 @@
+-package t::lib::TestUtils;
++package # hide
++ TestUtils;
+
+ use strict;
+
+--
+2.14.2
+