From: Fabian Groffen Date: Thu, 7 May 2020 18:55:28 +0000 (+0200) Subject: app-arch/xz-utils: workaround upstream Solaris hacks X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a73276e17c8718924577f566fa2a5bebc89c50d2;p=gentoo.git app-arch/xz-utils: workaround upstream Solaris hacks Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Fabian Groffen --- diff --git a/app-arch/xz-utils/xz-utils-5.2.5.ebuild b/app-arch/xz-utils/xz-utils-5.2.5.ebuild index e129349a96fc..cae7bc97c8e9 100644 --- a/app-arch/xz-utils/xz-utils-5.2.5.ebuild +++ b/app-arch/xz-utils/xz-utils-5.2.5.ebuild @@ -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[@]}" } diff --git a/app-arch/xz-utils/xz-utils-9999.ebuild b/app-arch/xz-utils/xz-utils-9999.ebuild index e129349a96fc..cae7bc97c8e9 100644 --- a/app-arch/xz-utils/xz-utils-9999.ebuild +++ b/app-arch/xz-utils/xz-utils-9999.ebuild @@ -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[@]}" }