From 819af439b82a6f4ab7bdd814526e043c6fc775ca Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sun, 20 Dec 2020 17:44:50 +0100 Subject: app-shells/dash-0.5.11.2: fix compilation on ppc-macos Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Fabian Groffen --- app-shells/dash/dash-0.5.11.2.ebuild | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app-shells/dash') diff --git a/app-shells/dash/dash-0.5.11.2.ebuild b/app-shells/dash/dash-0.5.11.2.ebuild index ea4ee62b3c0a..1299af651db8 100644 --- a/app-shells/dash/dash-0.5.11.2.ebuild +++ b/app-shells/dash/dash-0.5.11.2.ebuild @@ -40,6 +40,10 @@ src_configure() { # if your headers strictly adhere to POSIX, you'll need this too [[ ${CHOST##*solaris2.} -le 10 ]] && append-cppflags -DNAME_MAX=255 fi + if [[ ${CHOST} == powerpc-*-darwin* ]] ; then + sed -i -e 's/= stpncpy(s, \([^,]\+\), \([0-9]\+\))/+= snprintf(s, \2, "%s", \1)/' \ + src/jobs.c || die + fi append-cppflags -DJOBS=$(usex libedit 1 0) use static && append-ldflags -static # Do not pass --enable-glob due to #443552. -- cgit v1.2.3-65-gdbad