commit:     f9d67c55b8d7adb4f7771328d0dee6f0c578f542
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 22 12:50:47 2017 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Aug 22 12:50:47 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9d67c55

app-shells/dash: fix compilation on Solaris

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 app-shells/dash/dash-0.5.9.1-r2.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/app-shells/dash/dash-0.5.9.1-r2.ebuild 
b/app-shells/dash/dash-0.5.9.1-r2.ebuild
index d67690a06d6..d775db54f94 100644
--- a/app-shells/dash/dash-0.5.9.1-r2.ebuild
+++ b/app-shells/dash/dash-0.5.9.1-r2.ebuild
@@ -19,7 +19,7 @@ fi
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 IUSE="libedit static vanilla"
 
 RDEPEND="!static? ( libedit? ( dev-libs/libedit ) )"
@@ -47,6 +47,10 @@ src_prepare() {
 }
 
 src_configure() {
+       # don't redefine stat on Solaris
+       if [[ ${CHOST} == *-solaris* ]] ; then
+               export ac_cv_func_stat64=yes
+       fi
        append-cppflags -DJOBS=$(usex libedit 1 0)
        use static && append-ldflags -static
        # Do not pass --enable-glob due to #443552.

Reply via email to