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 <sam@gentoo.org>
This commit is contained in:
Sam James
2025-05-10 02:52:52 +01:00
parent 2aea3a5ecf
commit ff1f410ec1

View File

@@ -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"