mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-perl/File-NFSLock: Fix for '.' in @INC re bug #615094
Fix use of 'do q[relativepath]' for 5.26 changes. Bug: https://bugs.gentoo.org/615094 Package-Manager: Portage-2.3.6, Repoman-2.3.2
This commit is contained in:
@@ -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
|
||||
@@ -14,5 +14,5 @@ KEYWORDS="amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="virtual/perl-ExtUtils-MakeMaker"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}"-1.27-no-dot-inc.patch )
|
||||
SRC_TEST="do"
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
From 08deb6590eecd9d92a38edf1b22d615175e1d8d3 Mon Sep 17 00:00:00 2001
|
||||
From: Kent Fredric <kentfredric@gmail.com>
|
||||
Date: Mon, 26 Jun 2017 19:43:14 +1200
|
||||
Subject: [PATCH] Fix for '.' removal from Perl 5.26 @INC
|
||||
|
||||
---
|
||||
File-NFSLock.spec.PL | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/File-NFSLock.spec.PL b/File-NFSLock.spec.PL
|
||||
index fdf9fdf..f5586c1 100644
|
||||
--- a/File-NFSLock.spec.PL
|
||||
+++ b/File-NFSLock.spec.PL
|
||||
@@ -18,7 +18,7 @@ sub WriteMakefile {
|
||||
} elsif (my $version_from = $props{VERSION_FROM}) {
|
||||
$@ = "";
|
||||
$version = eval qq{
|
||||
- do "$version_from";
|
||||
+ do "./$version_from";
|
||||
\$$name\::VERSION || die "$version_from: Missing VERSION";
|
||||
};
|
||||
die $@ if $@;
|
||||
@@ -29,7 +29,7 @@ sub WriteMakefile {
|
||||
die "Makefile.PL: Could not determine version!";
|
||||
}
|
||||
}
|
||||
-do "Makefile.PL";
|
||||
+do "./Makefile.PL";
|
||||
if ($name) {
|
||||
$name =~ s/::/-/g;
|
||||
} else {
|
||||
--
|
||||
2.13.1
|
||||
|
||||
Reference in New Issue
Block a user