aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-05-21 19:22:31 -0400
committerSam James <sam@gentoo.org>2024-05-22 17:56:31 +0100
commit9728fbba80abeec5adad8ba6cf7580c16c039a45 (patch)
tree674f128754feec75d02511d67d6b46f54d2f37b2
parentunpack: skip unrecognized file formats *silently* (diff)
downloadportage-9728fbba80abeec5adad8ba6cf7580c16c039a45.tar.gz
portage-9728fbba80abeec5adad8ba6cf7580c16c039a45.tar.bz2
portage-9728fbba80abeec5adad8ba6cf7580c16c039a45.zip
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@gmail.com> Closes: https://github.com/gentoo/portage/pull/1327 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--bin/install-qa-check.d/90config-impl-decl12
1 files changed, 12 insertions, 0 deletions
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() {