commit:     0c7670535a190f35a2dfe482b38045c3b3cc6bc1
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 10 19:13:24 2018 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat Mar 10 19:13:57 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c767053

dev-lang/perl/perl: unbreak Solaris, we NEED -lnsl there

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 dev-lang/perl/perl-5.26.1-r2.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dev-lang/perl/perl-5.26.1-r2.ebuild 
b/dev-lang/perl/perl-5.26.1-r2.ebuild
index e23f6e792be..3a144671246 100644
--- a/dev-lang/perl/perl-5.26.1-r2.ebuild
+++ b/dev-lang/perl/perl-5.26.1-r2.ebuild
@@ -330,6 +330,11 @@ src_prepare() {
                sed -i "/my..sysroot/s:'':'${EPREFIX}':" ext/Errno/Errno_pm.PL 
|| die
        fi
 
+       if [[ ${CHOST} == *-solaris* ]] ; then
+               # do NOT mess with nsl, on Solaris this is always necessary,
+               # when -lsocket is used e.g. to get h_errno
+               PATCHES=( ${PATCHES[@]/*libnsl.patch/} )
+       fi
        default
 }
 

Reply via email to