Skip to content

Commit

Permalink
dev-perl/AnyEvent: Fix for '.' in @inc re bug #614640
Browse files Browse the repository at this point in the history
Force 'do' to use a relative path for compile time resolution
instead of searching @inc and failing on Perl 5.26

Bug: https://bugs.gentoo.org/614640
Package-Manager: Portage-2.3.6, Repoman-2.3.2
  • Loading branch information
kentfredric committed Jun 14, 2017
1 parent 5298ef9 commit 01eac82
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
1 change: 1 addition & 0 deletions dev-perl/AnyEvent/AnyEvent-7.120.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ DEPEND="${RDEPEND}
>=virtual/perl-ExtUtils-MakeMaker-6.520.0
dev-perl/Canary-Stability
"
PATCHES=("${FILESDIR}/no-dot-inc.patch")
3 changes: 2 additions & 1 deletion dev-perl/AnyEvent/AnyEvent-7.130.0.ebuild
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -18,3 +18,4 @@ DEPEND="${RDEPEND}
>=virtual/perl-ExtUtils-MakeMaker-6.520.0
dev-perl/Canary-Stability
"
PATCHES=("${FILESDIR}/no-dot-inc.patch")
28 changes: 28 additions & 0 deletions dev-perl/AnyEvent/files/no-dot-inc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
From 6fec7931344cc37c9532e8c455ee7f7bf62b9419 Mon Sep 17 00:00:00 2001
From: Kent Fredric <[email protected]>
Date: Wed, 14 Jun 2017 19:56:48 +1200
Subject: [PATCH] Fix "do" for '.' in @INC removal

Trivial fix for:

- http://lists.schmorp.de/pipermail/anyevent/2017q1/000859.html
---
Makefile.PL | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.PL b/Makefile.PL
index ef2ab4a..70b30b0 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -22,7 +22,7 @@ print <<EOF;

EOF

-do "constants.pl.PL"
+do "./constants.pl.PL"
or die "cannot execute constants.pl.PL: $@";

WriteMakefile(
--
2.13.1

0 comments on commit 01eac82

Please sign in to comment.