app-arch/xz-utils: workaround upstream Solaris hacks
authorFabian Groffen <grobian@gentoo.org>
Thu, 7 May 2020 18:55:28 +0000 (20:55 +0200)
committerFabian Groffen <grobian@gentoo.org>
Thu, 7 May 2020 18:55:51 +0000 (20:55 +0200)
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
app-arch/xz-utils/xz-utils-5.2.5.ebuild
app-arch/xz-utils/xz-utils-9999.ebuild

index e129349a96fce9a5b00abd4f6ec59d57fb4b1f8f..cae7bc97c8e90b15520b5ac9432bb227d73d9370 100644 (file)
@@ -67,6 +67,12 @@ multilib_src_configure() {
                )
        fi
 
+       if [[ ${CHOST} == *-solaris* ]] ; then
+               # undo Solaris-based defaults pointing to /usr/xpg5/bin
+               myconf+=( --disable-path-for-script )
+               export gl_cv_posix_shell=${EPREFIX}/bin/sh
+       fi
+
        use elibc_FreeBSD && export ac_cv_header_sha256_h=no #545714
        ECONF_SOURCE="${S}" econf "${myconf[@]}"
 }
index e129349a96fce9a5b00abd4f6ec59d57fb4b1f8f..cae7bc97c8e90b15520b5ac9432bb227d73d9370 100644 (file)
@@ -67,6 +67,12 @@ multilib_src_configure() {
                )
        fi
 
+       if [[ ${CHOST} == *-solaris* ]] ; then
+               # undo Solaris-based defaults pointing to /usr/xpg5/bin
+               myconf+=( --disable-path-for-script )
+               export gl_cv_posix_shell=${EPREFIX}/bin/sh
+       fi
+
        use elibc_FreeBSD && export ac_cv_header_sha256_h=no #545714
        ECONF_SOURCE="${S}" econf "${myconf[@]}"
 }