commit: 307be9070bf83c88a4b49af412ff7303d7ea68a5
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 22 11:52:24 2021 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Aug 22 12:00:11 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=307be907
sys-apps/findutils-4.8.0: fix build on darwin
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
sys-apps/findutils/findutils-4.8.0.ebuild | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/sys-apps/findutils/findutils-4.8.0.ebuild
b/sys-apps/findutils/findutils-4.8.0.ebuild
index 47dbdb5d314..9e47fcc6527 100644
--- a/sys-apps/findutils/findutils-4.8.0.ebuild
+++ b/sys-apps/findutils/findutils-4.8.0.ebuild
@@ -47,6 +47,12 @@ src_configure() {
append-ldflags -static
fi
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ #
https://lists.gnu.org/archive/html/bug-findutils/2021-01/msg00050.html
+ #
https://lists.gnu.org/archive/html/bug-findutils/2021-01/msg00051.html
+ append-cppflags '-D__nonnull\(X\)='
+ fi
+
program_prefix=$(usex userland_GNU '' g)
local myeconfargs=(
--with-packager="Gentoo"