commit:     cb8bcce7d9f965a0c09f5849a1d12aef12510c89
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Tue May 21 22:22:04 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 22 01:06:17 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb8bcce7

net-misc/dhcpcd: add whitelist for false positive configure implicit decls

arc4random is actually added to glibc now. The checks work there, and
still fail on musl, which they were always supposed to -- the checks are
run with -Werror, and even without that, the linker dies with undefined
references here.

So this is "safe", albeit kinda gross when autoconf exists.

Closes: https://bugs.gentoo.org/924825
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/dhcpcd/dhcpcd-10.0.6-r3.ebuild | 4 ++++
 net-misc/dhcpcd/dhcpcd-9999.ebuild      | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/net-misc/dhcpcd/dhcpcd-10.0.6-r3.ebuild 
b/net-misc/dhcpcd/dhcpcd-10.0.6-r3.ebuild
index 3fcb61425cc4..492b2eca8327 100644
--- a/net-misc/dhcpcd/dhcpcd-10.0.6-r3.ebuild
+++ b/net-misc/dhcpcd/dhcpcd-10.0.6-r3.ebuild
@@ -46,6 +46,10 @@ QA_CONFIG_IMPL_DECL_SKIP=(
        consttime_memequal
        SHA256_Init
        hmac
+       # These may exist on some glibc versions, but the checks fail due to
+       # -Werror / undefined reference no matter what. bug #924825
+       arc4random
+       arc4random_uniform
 )
 
 PATCHES=(

diff --git a/net-misc/dhcpcd/dhcpcd-9999.ebuild 
b/net-misc/dhcpcd/dhcpcd-9999.ebuild
index 1c3bbc87d456..56307d8d8f09 100644
--- a/net-misc/dhcpcd/dhcpcd-9999.ebuild
+++ b/net-misc/dhcpcd/dhcpcd-9999.ebuild
@@ -46,6 +46,10 @@ QA_CONFIG_IMPL_DECL_SKIP=(
        consttime_memequal
        SHA256_Init
        hmac
+       # These may exist on some glibc versions, but the checks fail due to
+       # -Werror / undefined reference no matter what. bug #924825
+       arc4random
+       arc4random_uniform
 )
 
 PATCHES=(

Reply via email to