diff options
author | Fabian Groffen <grobian@gentoo.org> | 2019-02-19 15:48:52 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2019-02-19 15:49:09 +0100 |
commit | b091d65077af3b9bb7e286f741f7e1e684fe5eb9 (patch) | |
tree | 3095564d79daf7335ecd5934c9d2264fc51b1ca5 /dev-lang | |
parent | www-apache/mod_h2: 1.12.5 version bump (diff) | |
download | gentoo-b091d65077af3b9bb7e286f741f7e1e684fe5eb9.tar.gz gentoo-b091d65077af3b9bb7e286f741f7e1e684fe5eb9.tar.bz2 gentoo-b091d65077af3b9bb7e286f741f7e1e684fe5eb9.zip |
dev-lang/perl: fix linking on Solaris, bug #677676
Closes: https://bugs.gentoo.org/677676
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/perl/perl-5.28.0.ebuild | 7 | ||||
-rw-r--r-- | dev-lang/perl/perl-5.28.9999.ebuild | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/dev-lang/perl/perl-5.28.0.ebuild b/dev-lang/perl/perl-5.28.0.ebuild index bacc75e30d88..71fc2b82b39b 100644 --- a/dev-lang/perl/perl-5.28.0.ebuild +++ b/dev-lang/perl/perl-5.28.0.ebuild @@ -307,8 +307,6 @@ src_prepare() { # do NOT mess with nsl, on Solaris this is always necessary, # when -lsocket is used e.g. to get h_errno sed -i '/gentoo\/no-nsl\.patch/d' "${WORKDIR}/patches/series" || die - # and set a soname - sed -i 's/sunos\*/sunos*|solaris*/' Makefile.SH || die fi einfo "Applying patches from ${PATCH_BASE} ..." @@ -333,6 +331,11 @@ src_prepare() { sed -i "/my..sysroot/s:'':'${EPREFIX}':" ext/Errno/Errno_pm.PL || die fi + if [[ ${CHOST} == *-solaris* ]] ; then + # set a soname, fix linking against just built libperl + sed -i -e 's/netbsd\*/netbsd*|solaris*/' Makefile.SH || die + fi + default } diff --git a/dev-lang/perl/perl-5.28.9999.ebuild b/dev-lang/perl/perl-5.28.9999.ebuild index bacc75e30d88..71fc2b82b39b 100644 --- a/dev-lang/perl/perl-5.28.9999.ebuild +++ b/dev-lang/perl/perl-5.28.9999.ebuild @@ -307,8 +307,6 @@ src_prepare() { # do NOT mess with nsl, on Solaris this is always necessary, # when -lsocket is used e.g. to get h_errno sed -i '/gentoo\/no-nsl\.patch/d' "${WORKDIR}/patches/series" || die - # and set a soname - sed -i 's/sunos\*/sunos*|solaris*/' Makefile.SH || die fi einfo "Applying patches from ${PATCH_BASE} ..." @@ -333,6 +331,11 @@ src_prepare() { sed -i "/my..sysroot/s:'':'${EPREFIX}':" ext/Errno/Errno_pm.PL || die fi + if [[ ${CHOST} == *-solaris* ]] ; then + # set a soname, fix linking against just built libperl + sed -i -e 's/netbsd\*/netbsd*|solaris*/' Makefile.SH || die + fi + default } |