From a73276e17c8718924577f566fa2a5bebc89c50d2 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Thu, 7 May 2020 20:55:28 +0200 Subject: [PATCH] app-arch/xz-utils: workaround upstream Solaris hacks Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Fabian Groffen --- app-arch/xz-utils/xz-utils-5.2.5.ebuild | 6 ++++++ app-arch/xz-utils/xz-utils-9999.ebuild | 6 ++++++ 2 files changed, 12 insertions(+) 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[@]}" } -- 2.26.2