commit:     ff1f410ec18385497f00dd86f2a64d60b1ed4b1a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat May 10 01:52:52 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat May 10 01:53:27 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff1f410e

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 <AT> gentoo.org>

 eclass/toolchain.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 6d76823fb549..f0a0b377dc56 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"

Reply via email to