summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Amadio <amadio@gentoo.org>2018-03-02 10:19:33 +0100
committerGuilherme Amadio <amadio@gentoo.org>2018-03-05 20:29:27 +0100
commit475f23e198ba9e76dad67a8762eef64c037c55f3 (patch)
tree3b55319458f454c0cd4d6fdf33a66d1f98a5b583 /dev-lang
parentnet-misc/ntpsec: [QA] Remove CVS $Id$ line from header. (diff)
downloadgentoo-475f23e198ba9e76dad67a8762eef64c037c55f3.tar.gz
gentoo-475f23e198ba9e76dad67a8762eef64c037c55f3.tar.bz2
gentoo-475f23e198ba9e76dad67a8762eef64c037c55f3.zip
dev-lang/perl: use errno.h from prefix, bug #645804
Closes: https://bugs.gentoo.org/645804 Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/perl/perl-5.26.1-r2.ebuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/dev-lang/perl/perl-5.26.1-r2.ebuild b/dev-lang/perl/perl-5.26.1-r2.ebuild
index 2b6ee9d381dd..e23f6e792be6 100644
--- a/dev-lang/perl/perl-5.26.1-r2.ebuild
+++ b/dev-lang/perl/perl-5.26.1-r2.ebuild
@@ -325,6 +325,11 @@ src_prepare() {
ext/NDBM_File/Makefile.PL || die
fi
+ # Use errno.h from prefix rather than from host system, bug #645804
+ if use prefix; then
+ sed -i "/my..sysroot/s:'':'${EPREFIX}':" ext/Errno/Errno_pm.PL || die
+ fi
+
default
}