From ff1f410ec18385497f00dd86f2a64d60b1ed4b1a Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 10 May 2025 02:52:52 +0100 Subject: [PATCH] toolchain.eclass: set QA_PRESTRIPPED for now for Go As slyfox analysed on the bug, Portage shouldn't be warning on these files as they're not executables. We should look at fixing Portage but set QA_PRESTRIPPED for now to avoid noise and potentially missing other actual warnings. Bug: https://bugs.gentoo.org/793770 Closes: https://bugs.gentoo.org/795810 Closes: https://bugs.gentoo.org/955240 Signed-off-by: Sam James --- eclass/toolchain.eclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 6d76823fb549c..f0a0b377dc562 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -2789,6 +2789,8 @@ toolchain_src_install() { # Don't scan .gox files for executable stacks - false positives export QA_EXECSTACK="usr/lib*/go/*/*.gox" export QA_WX_LOAD="usr/lib*/go/*/*.gox" + # Workaround bug #793770 + export QA_PRESTRIPPED="usr/lib*/go/*/*.gox" # Disable RANDMMAP so PCH works, bug #301299 pax-mark -r "${ED}/libexec/gcc/${CTARGET}/${GCC_CONFIG_VER}/cc1"