From: | Fabian Groffen <grobian@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] repo/gentoo:master commit in: net-misc/wget/ |
Date: | Sat, 16 Oct 2021 12:38:08 |
Message-Id: | 1634387882.2b52e245430421877b2156d6c1fedde718a5d486.grobian@gentoo |
1 | commit: 2b52e245430421877b2156d6c1fedde718a5d486 |
2 | Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 | AuthorDate: Sat Oct 16 12:37:51 2021 +0000 |
4 | Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 | CommitDate: Sat Oct 16 12:38:02 2021 +0000 |
6 | URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b52e245 |
7 | |
8 | net-misc/wget-1.21.2: update fixes for 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 | net-misc/wget/wget-1.21.2.ebuild | 14 ++++++++------ |
14 | 1 file changed, 8 insertions(+), 6 deletions(-) |
15 | |
16 | diff --git a/net-misc/wget/wget-1.21.2.ebuild b/net-misc/wget/wget-1.21.2.ebuild |
17 | index 5dee2e984f6..27f69c718b3 100644 |
18 | --- a/net-misc/wget/wget-1.21.2.ebuild |
19 | +++ b/net-misc/wget/wget-1.21.2.ebuild |
20 | @@ -68,6 +68,14 @@ src_prepare() { |
21 | -e 's/^ LIBICONV=$/:/' \ |
22 | configure || die |
23 | fi |
24 | + |
25 | + if [[ ${CHOST} == *-darwin* && ${CHOST##*-darwin} -le 17 ]] ; then |
26 | + # Fix older Darwin inline definition problem |
27 | + # fixed upstream |
28 | + # https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commit;h=29d79d473f52b0ec58f50c95ef782c66fc0ead21 |
29 | + sed -i -e '/define _GL_EXTERN_INLINE_STDHEADER_BUG/s/_BUG/_DISABLE/' \ |
30 | + src/config.h.in || die |
31 | + fi |
32 | } |
33 | |
34 | src_configure() { |
35 | @@ -75,12 +83,6 @@ src_configure() { |
36 | # the included gnutls -- force ioctl.h to include this header |
37 | [[ ${CHOST} == *-solaris* ]] && append-cppflags -DBSD_COMP=1 |
38 | |
39 | - if [[ ${CHOST} == *-darwin* ]] ; then |
40 | - # https://lists.gnu.org/archive/html/bug-findutils/2021-01/msg00050.html |
41 | - # https://lists.gnu.org/archive/html/bug-findutils/2021-01/msg00051.html |
42 | - append-cppflags '-D__nonnull\(X\)=' |
43 | - fi |
44 | - |
45 | if use static ; then |
46 | append-ldflags -static |
47 | tc-export PKG_CONFIG |