Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/gzip/
Date: Sat, 16 Oct 2021 12:15:46
Message-Id: 1634386539.35bc9c8bbdf00b7aca254a4a1b5f622331548c0a.grobian@gentoo
1 commit: 35bc9c8bbdf00b7aca254a4a1b5f622331548c0a
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 16 12:15:13 2021 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 16 12:15:39 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35bc9c8b
7
8 app-arch/gzip-1.11: fix compilation on older Darwin
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
12
13 app-arch/gzip/gzip-1.11.ebuild | 9 +++++++++
14 1 file changed, 9 insertions(+)
15
16 diff --git a/app-arch/gzip/gzip-1.11.ebuild b/app-arch/gzip/gzip-1.11.ebuild
17 index b41b9f81067..395fb2de49b 100644
18 --- a/app-arch/gzip/gzip-1.11.ebuild
19 +++ b/app-arch/gzip/gzip-1.11.ebuild
20 @@ -20,6 +20,15 @@ PATCHES=(
21 "${FILESDIR}/${PN}-1.3.8-install-symlinks.patch"
22 )
23
24 +src_prepare() {
25 + default
26 + if [[ ${CHOST} == *darwin* && ${CHOST##*darwin} -le 17 ]] ; then
27 + # Fix older Darwin inline definition problem
28 + sed -i -e '/define _GL_EXTERN_INLINE_STDHEADER_BUG/s/_BUG/_DISABLE/' \
29 + lib/config.hin || die
30 + fi
31 +}
32 +
33 src_configure() {
34 use static && append-flags -static
35 # avoid text relocation in gzip