From f9d67c55b8d7adb4f7771328d0dee6f0c578f542 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Tue, 22 Aug 2017 14:50:47 +0200 Subject: [PATCH] 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 d67690a06d6a..d775db54f946 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. -- 2.26.2