commit:     9728fbba80abeec5adad8ba6cf7580c16c039a45
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Tue May 21 23:22:31 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 22 16:56:31 2024 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=9728fbba

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 <eschwartz93 <AT> gmail.com>
Closes: https://github.com/gentoo/portage/pull/1327
Signed-off-by: Sam James <sam <AT> gentoo.org>

 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 adea7d4051..8768c99c62 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() {

Reply via email to