commit: 8bfc361e10505f53ee14c8f232d342aa68536758
Author: Michael Marineau <mike <AT> marineau <DOT> org>
AuthorDate: Fri Aug 21 20:31:08 2015 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sun Aug 23 15:30:44 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bfc361e
dev-lang/go-bootstrap: avoid stripping test data files
Go includes a number of pre-built object files for testing. Since they
are not actually executed and may not even be native to the local system
stripping them is meaningless. This syncs up STRIP_MASK with the same
list used by the latest go ebuilds.
One file, src/debug/dwarf/testdata/typedef.elf, includes a build-id
which causes a conflict with the go-1.4 when FEATURES=splitdebug is
enabled.
Fixes bug #549598
dev-lang/go-bootstrap/go-bootstrap-1.4.2.ebuild | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/dev-lang/go-bootstrap/go-bootstrap-1.4.2.ebuild
b/dev-lang/go-bootstrap/go-bootstrap-1.4.2.ebuild
index 2610ffe..faba1ca 100644
--- a/dev-lang/go-bootstrap/go-bootstrap-1.4.2.ebuild
+++ b/dev-lang/go-bootstrap/go-bootstrap-1.4.2.ebuild
@@ -26,9 +26,11 @@ RDEPEND=""
QA_MULTILIB_PATHS="usr/lib/go1.4/pkg/tool/.*/.*"
# The go language uses *.a files which are _NOT_ libraries and should not be
-# stripped.
-STRIP_MASK="/usr/lib/go1.4/pkg/linux*/*.a
- /usr/lib/go1.4/pkg/freebsd*/*.a /usr/lib/go1.4/pkg/darwin*/*.a"
+# stripped. The test data objects should also be left alone and unstripped.
+STRIP_MASK="/usr/lib/go1.4/pkg/*.a
+ /usr/lib/go1.4/src/debug/elf/testdata/*
+ /usr/lib/go1.4/src/debug/dwarf/testdata/*
+ /usr/lib/go1.4/src/runtime/race/*.syso"
S="${WORKDIR}"/go
@@ -63,7 +65,7 @@ src_install()
{
dodir /usr/lib/go1.4
exeinto /usr/lib/go1.4/bin
-doexe bin/*
+ doexe bin/*
insinto /usr/lib/go1.4
doins -r lib pkg src
fperms -R +x /usr/lib/go1.4/pkg/tool