From 9728fbba80abeec5adad8ba6cf7580c16c039a45 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 21 May 2024 19:22:31 -0400 Subject: install-qa-checks.d: suppress some gnulib implicit decls on musl These happen in tons of GNU packages because of using gnulib's regex.m4 specifically, which pulls in a macro that checks for some functionality and spit out many implicit function declaration errors if regex.h isn't GNU's specifically. The compile tests do fail either way, it's just very dirty in the logs. Bug: https://bugs.gentoo.org/906027 Signed-off-by: Eli Schwartz Closes: https://github.com/gentoo/portage/pull/1327 Signed-off-by: Sam James --- bin/install-qa-check.d/90config-impl-decl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bin/install-qa-check.d/90config-impl-decl b/bin/install-qa-check.d/90config-impl-decl index adea7d405..8768c99c6 100644 --- a/bin/install-qa-check.d/90config-impl-decl +++ b/bin/install-qa-check.d/90config-impl-decl @@ -58,6 +58,18 @@ add_default_skips() { # also gnulib, but checks both linux/non-linux headers MIN ) + if [[ ${CHOST} = *musl* ]]; then + QA_CONFIG_IMPL_DECL_SKIP+=( + # gnulib checks for functions that aren't available on musl. + + # regex.m4 always emits these warnings, but they are noisy to fix + # and the check will correctly fail due to missing macros anyway. + re_set_syntax + re_compile_pattern + re_search + re_match + ) + fi } find_log_targets() { -- cgit v1.2.3-65-gdbad