commit: 35bc9c8bbdf00b7aca254a4a1b5f622331548c0a
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 16 12:15:13 2021 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat Oct 16 12:15:39 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35bc9c8b
app-arch/gzip-1.11: fix compilation on older Darwin
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
app-arch/gzip/gzip-1.11.ebuild | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/app-arch/gzip/gzip-1.11.ebuild b/app-arch/gzip/gzip-1.11.ebuild
index b41b9f81067..395fb2de49b 100644
--- a/app-arch/gzip/gzip-1.11.ebuild
+++ b/app-arch/gzip/gzip-1.11.ebuild
@@ -20,6 +20,15 @@ PATCHES=(
"${FILESDIR}/${PN}-1.3.8-install-symlinks.patch"
)
+src_prepare() {
+ default
+ if [[ ${CHOST} == *darwin* && ${CHOST##*darwin} -le 17 ]] ; then
+ # Fix older Darwin inline definition problem
+ sed -i -e '/define
_GL_EXTERN_INLINE_STDHEADER_BUG/s/_BUG/_DISABLE/' \
+ lib/config.hin || die
+ fi
+}
+
src_configure() {
use static && append-flags -static
# avoid text relocation in gzip