dev-perl/PPI: Fix test failure without '.' in @INC
authorKent Fredric <kentnl@gentoo.org>
Mon, 19 Jun 2017 15:18:10 +0000 (03:18 +1200)
committerKent Fredric <kentnl@gentoo.org>
Mon, 19 Jun 2017 15:19:06 +0000 (03:19 +1200)
- Apply patch supplied upstream for t/marpa.t
- Fix wrongly normalized version.

Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-perl/PPI/PPI-1.224.0.ebuild [moved from dev-perl/PPI/PPI-1.224.ebuild with 95% similarity]
dev-perl/PPI/files/PPI-1.224.0-t-marpa-dot-inc.patch [new file with mode: 0644]
dev-perl/PPI/metadata.xml

similarity index 95%
rename from dev-perl/PPI/PPI-1.224.ebuild
rename to dev-perl/PPI/PPI-1.224.0.ebuild
index 95145cb7dadd1bb8fadf1d5330761c18e42ea418..2af6125c1c5604337679af3bc8a022086355174f 100644 (file)
@@ -36,3 +36,4 @@ DEPEND="${RDEPEND}
                >=dev-perl/Test-Warn-0.300.0
        )
 "
+PATCHES=("${FILESDIR}/${P}-t-marpa-dot-inc.patch")
diff --git a/dev-perl/PPI/files/PPI-1.224.0-t-marpa-dot-inc.patch b/dev-perl/PPI/files/PPI-1.224.0-t-marpa-dot-inc.patch
new file mode 100644 (file)
index 0000000..2a02e1d
--- /dev/null
@@ -0,0 +1,27 @@
+From 74e2e77fdce3e2f366342ad736c25e49379d2013 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentfredric@gmail.com>
+Date: Tue, 20 Jun 2017 03:04:48 +1200
+Subject: [PATCH] t/marpa.t: Fix test reliance on '.' in @INC
+
+Fixes https://github.com/adamkennedy/PPI/issues/200
+---
+ t/marpa.t | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/t/marpa.t b/t/marpa.t
+index a25fc2e..6e79003 100644
+--- a/t/marpa.t
++++ b/t/marpa.t
+@@ -2,7 +2,8 @@
+ 
+ # Unit testing for PPI::Token::Unknown
+ 
+-use t::lib::PPI::Test::pragmas;
++use lib 't/lib';
++use PPI::Test::pragmas;
+ use Test::More tests => 23 + ( $ENV{AUTHOR_TESTING} ? 1 : 0 );
+ use B 'perlstring';
+ 
+-- 
+2.13.1
+
index 8f20830635c03b655867feb4d9e15b5b89e49cfb..b16f7f1afbb911aa0754d0d3675f5d2bde92b53d 100644 (file)
@@ -17,7 +17,6 @@
     <remote-id type="cpan-module">PPI::Element</remote-id>
     <remote-id type="cpan-module">PPI::Exception</remote-id>
     <remote-id type="cpan-module">PPI::Exception::ParserRejection</remote-id>
-    <remote-id type="cpan-module">PPI::Exception::ParserTimeout</remote-id>
     <remote-id type="cpan-module">PPI::Find</remote-id>
     <remote-id type="cpan-module">PPI::Lexer</remote-id>
     <remote-id type="cpan-module">PPI::Node</remote-id>