summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Fredric <kentnl@gentoo.org>2017-10-07 00:33:32 +1300
committerKent Fredric <kentnl@gentoo.org>2017-10-07 00:39:18 +1300
commita25241bfbe24651f5537029f86ffc2750b20024f (patch)
treed0a11af553c2557755500dd1ea23d3a8491f5890 /dev-perl/Devel-Refactor
parentdev-perl/Search-Xapian: version bump to 1.2.25.0 (diff)
downloadgentoo-a25241bfbe24651f5537029f86ffc2750b20024f.tar.gz
gentoo-a25241bfbe24651f5537029f86ffc2750b20024f.tar.bz2
gentoo-a25241bfbe24651f5537029f86ffc2750b20024f.zip
dev-perl/Devel-Refactor: Fix test failures under perl 5.26 bug #615738
Closes: https://bugs.gentoo.org/615738 Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'dev-perl/Devel-Refactor')
-rw-r--r--dev-perl/Devel-Refactor/Devel-Refactor-0.50.0-r1.ebuild4
-rw-r--r--dev-perl/Devel-Refactor/files/Devel-Refactor-0.50.0-perl526.patch30
2 files changed, 32 insertions, 2 deletions
diff --git a/dev-perl/Devel-Refactor/Devel-Refactor-0.50.0-r1.ebuild b/dev-perl/Devel-Refactor/Devel-Refactor-0.50.0-r1.ebuild
index b13b57a5c65a..57a202400a61 100644
--- a/dev-perl/Devel-Refactor/Devel-Refactor-0.50.0-r1.ebuild
+++ b/dev-perl/Devel-Refactor/Devel-Refactor-0.50.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -12,5 +12,5 @@ DESCRIPTION="Perl extension for refactoring Perl code"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
-
+PATCHES=( "${FILESDIR}/${P}-perl526.patch" )
SRC_TEST="do"
diff --git a/dev-perl/Devel-Refactor/files/Devel-Refactor-0.50.0-perl526.patch b/dev-perl/Devel-Refactor/files/Devel-Refactor-0.50.0-perl526.patch
new file mode 100644
index 000000000000..40d5c2f6b22b
--- /dev/null
+++ b/dev-perl/Devel-Refactor/files/Devel-Refactor-0.50.0-perl526.patch
@@ -0,0 +1,30 @@
+From f7e1813ec2d1be584499f5f2a968dc1bf430fe5b Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Sat, 7 Oct 2017 00:22:26 +1300
+Subject: t/basic.t: Fix test failure on 5.26
+
+use_ok should use the fully qualified name as it runs with blib
+during `make test`
+
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=121180
+Bug: https://bugs.gentoo.org/615738
+---
+ t/basic.t | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/t/basic.t b/t/basic.t
+index dd8cefc..8f09e23 100755
+--- a/t/basic.t
++++ b/t/basic.t
+@@ -7,7 +7,7 @@ use Data::Dumper;
+
+ BEGIN {
+ # diag "\@INC contains:\n", join("\n",@INC);
+- use_ok 'Refactor';
++ use_ok 'Devel::Refactor';
+ }
+
+ my $rf = Devel::Refactor->new;
+--
+2.14.1
+