dev-perl/List-UtilsBy: Fix test failures without '.' in @INC bug #615096
authorKent Fredric <kentnl@gentoo.org>
Fri, 27 Oct 2017 01:41:51 +0000 (14:41 +1300)
committerKent Fredric <kentnl@gentoo.org>
Fri, 27 Oct 2017 01:42:14 +0000 (14:42 +1300)
Closes: https://bugs.gentoo.org/615096
Package-Manager: Portage-2.3.8, Repoman-2.3.3

dev-perl/List-UtilsBy/List-UtilsBy-0.100.0.ebuild
dev-perl/List-UtilsBy/files/List-UtilsBy-0.100.0-no-dot-inc.patch [new file with mode: 0644]

index 5026eba8331cb9ba235b6bfda5c8213b7aed71bb..229589cd0784b6d8bdcd1dcaa7d7075f16e831fa 100644 (file)
@@ -17,7 +17,7 @@ DEPEND="
        >=dev-perl/Module-Build-0.380.0
        test? ( virtual/perl-Test-Simple )
 "
-
+PATCHES=("${FILESDIR}/${P}-no-dot-inc.patch")
 SRC_TEST=do
 
 src_test() {
diff --git a/dev-perl/List-UtilsBy/files/List-UtilsBy-0.100.0-no-dot-inc.patch b/dev-perl/List-UtilsBy/files/List-UtilsBy-0.100.0-no-dot-inc.patch
new file mode 100644 (file)
index 0000000..1ca063f
--- /dev/null
@@ -0,0 +1,27 @@
+From a7ce31efae156a93136b07136aead3e44b7d4b6c Mon Sep 17 00:00:00 2001
+From: Paul Evans <leonerd-cpan@leonerd.org.uk>
+Date: Mon, 27 Feb 2017 11:05:41 +0000
+Subject: Fix test failures without '.' in @INC
+
+Bug: https://rt.cpan.org/Ticket/Display.html?id=120418
+Bug: https://bugs.gentoo.org/615096
+---
+ t/11weighted_shuffle_by.t | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/t/11weighted_shuffle_by.t b/t/11weighted_shuffle_by.t
+index 68da739..0d41639 100644
+--- a/t/11weighted_shuffle_by.t
++++ b/t/11weighted_shuffle_by.t
+@@ -4,6 +4,8 @@ use strict;
+ use warnings;
+ 
+ use Test::More;
++
++use lib ".";
+ use t::Unrandom;
+ 
+ use List::UtilsBy qw( weighted_shuffle_by );
+-- 
+2.14.3
+