commit:     773709ec686624a37ca8bd1725bdb6739bd2b278
Author:     Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
AuthorDate: Thu May 17 10:29:53 2018 +0000
Commit:     Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
CommitDate: Thu May 17 10:31:12 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=773709ec

dev-lang/perl: use host errno.h with prefix-guest, bug #645804

Closes: https://bugs.gentoo.org/645804
Package-Manager: Portage-2.3.24, Repoman-2.3.6

 dev-lang/perl/perl-5.26.2.ebuild    | 2 +-
 dev-lang/perl/perl-5.26.9999.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-lang/perl/perl-5.26.2.ebuild b/dev-lang/perl/perl-5.26.2.ebuild
index 2c84ddbd0ed..4d68b551fc9 100644
--- a/dev-lang/perl/perl-5.26.2.ebuild
+++ b/dev-lang/perl/perl-5.26.2.ebuild
@@ -331,7 +331,7 @@ src_prepare() {
        fi
 
        # Use errno.h from prefix rather than from host system, bug #645804
-       if use prefix; then
+       if use prefix && ! use prefix-guest; then
                sed -i "/my..sysroot/s:'':'${EPREFIX}':" ext/Errno/Errno_pm.PL 
|| die
        fi
 

diff --git a/dev-lang/perl/perl-5.26.9999.ebuild 
b/dev-lang/perl/perl-5.26.9999.ebuild
index 2c84ddbd0ed..4d68b551fc9 100644
--- a/dev-lang/perl/perl-5.26.9999.ebuild
+++ b/dev-lang/perl/perl-5.26.9999.ebuild
@@ -331,7 +331,7 @@ src_prepare() {
        fi
 
        # Use errno.h from prefix rather than from host system, bug #645804
-       if use prefix; then
+       if use prefix && ! use prefix-guest; then
                sed -i "/my..sysroot/s:'':'${EPREFIX}':" ext/Errno/Errno_pm.PL 
|| die
        fi
 

Reply via email to