dev-perl/HTML-Mason: Fix tests failing without '.' in @INC bug #616966
authorKent Fredric <kentnl@gentoo.org>
Tue, 24 Oct 2017 04:49:20 +0000 (17:49 +1300)
committerKent Fredric <kentnl@gentoo.org>
Tue, 24 Oct 2017 04:49:39 +0000 (17:49 +1300)
Closes: https://bugs.gentoo.org/616966
Package-Manager: Portage-2.3.8, Repoman-2.3.3

dev-perl/HTML-Mason/HTML-Mason-1.560.0.ebuild
dev-perl/HTML-Mason/files/HTML-Mason-1.560.0-no-dot-inc.patch [new file with mode: 0644]

index c6057a104d3e1962cb678b9b8c096aa7b7c45fb1..522c6657af3b21a039588001946961f87d7fb8f5 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -36,6 +36,7 @@ DEPEND="${RDEPEND}
                dev-perl/Test-Deep
        )
 "
+PATCHES=( "${FILESDIR}/${P}-no-dot-inc.patch" )
 
 want_apache2 modperl
 
diff --git a/dev-perl/HTML-Mason/files/HTML-Mason-1.560.0-no-dot-inc.patch b/dev-perl/HTML-Mason/files/HTML-Mason-1.560.0-no-dot-inc.patch
new file mode 100644 (file)
index 0000000..6dda620
--- /dev/null
@@ -0,0 +1,28 @@
+From 07ed4ceef9d501d2ee455e589ae9075a9898ebdd Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Tue, 24 Oct 2017 17:40:13 +1300
+Subject: Fix t/13-errors.t failing w/o '.' in @INC
+
+Bug: https://bugs.gentoo.org/616966
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=121443
+Bug: https://github.com/houseabsolute/HTML-Mason/pull/6
+---
+ t/13-errors.t | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/t/13-errors.t b/t/13-errors.t
+index 716f2f02..78cfc6b0 100644
+--- a/t/13-errors.t
++++ b/t/13-errors.t
+@@ -417,7 +417,7 @@ EOF
+                       description => 'Require a module with an error in a once block',
+                       component => <<'EOF',
+ <%once>
+-require "t/lib/BadModule.pm";
++require "./t/lib/BadModule.pm";
+ </%once>
+ hi!
+ EOF
+-- 
+2.14.2
+