Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/findutils/
Date: Sun, 22 Aug 2021 12:00:24
Message-Id: 1629633611.307be9070bf83c88a4b49af412ff7303d7ea68a5.grobian@gentoo
1 commit: 307be9070bf83c88a4b49af412ff7303d7ea68a5
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 22 11:52:24 2021 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 22 12:00:11 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=307be907
7
8 sys-apps/findutils-4.8.0: fix build on 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 sys-apps/findutils/findutils-4.8.0.ebuild | 6 ++++++
14 1 file changed, 6 insertions(+)
15
16 diff --git a/sys-apps/findutils/findutils-4.8.0.ebuild b/sys-apps/findutils/findutils-4.8.0.ebuild
17 index 47dbdb5d314..9e47fcc6527 100644
18 --- a/sys-apps/findutils/findutils-4.8.0.ebuild
19 +++ b/sys-apps/findutils/findutils-4.8.0.ebuild
20 @@ -47,6 +47,12 @@ src_configure() {
21 append-ldflags -static
22 fi
23
24 + if [[ ${CHOST} == *-darwin* ]] ; then
25 + # https://lists.gnu.org/archive/html/bug-findutils/2021-01/msg00050.html
26 + # https://lists.gnu.org/archive/html/bug-findutils/2021-01/msg00051.html
27 + append-cppflags '-D__nonnull\(X\)='
28 + fi
29 +
30 program_prefix=$(usex userland_GNU '' g)
31 local myeconfargs=(
32 --with-packager="Gentoo"