commit: f80100b2420d7b7790092f32c39d016e3c5d03fe Author: Sam Wilson <sam <AT> binarycake <DOT> ca> AuthorDate: Mon Nov 10 03:30:43 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Nov 12 09:40:29 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f80100b2
net-p2p/go-ethereum: don't strip debug symbols Closes: https://bugs.gentoo.org/960079 Signed-off-by: Sam Wilson <sam <AT> binarycake.ca> Part-of: https://github.com/gentoo/gentoo/pull/44575 Closes: https://github.com/gentoo/gentoo/pull/44575 Signed-off-by: Sam James <sam <AT> gentoo.org> .../go-ethereum/files/go-ethereum-1.16.7-dont-strip.patch | 13 +++++++++++++ net-p2p/go-ethereum/go-ethereum-1.16.7.ebuild | 2 ++ 2 files changed, 15 insertions(+) diff --git a/net-p2p/go-ethereum/files/go-ethereum-1.16.7-dont-strip.patch b/net-p2p/go-ethereum/files/go-ethereum-1.16.7-dont-strip.patch new file mode 100644 index 000000000000..b4e989154c51 --- /dev/null +++ b/net-p2p/go-ethereum/files/go-ethereum-1.16.7-dont-strip.patch @@ -0,0 +1,13 @@ +diff --git a/build/ci.go b/build/ci.go +index 59c948a..752f440 100644 +--- a/build/ci.go ++++ b/build/ci.go +@@ -322,7 +322,7 @@ func buildFlags(env build.Environment, staticLinking bool, buildTags []string) ( + // regarding the options --build-id=none and --strip-all. It is needed for + // reproducible builds; removing references to temporary files in C-land, and + // making build-id reproducibly absent. +- extld := []string{"-Wl,-z,stack-size=0x800000,--build-id=none,--strip-all"} ++ extld := []string{"-Wl,-z,stack-size=0x800000,--build-id=none"} + if staticLinking { + extld = append(extld, "-static") + // Under static linking, use of certain glibc features must be diff --git a/net-p2p/go-ethereum/go-ethereum-1.16.7.ebuild b/net-p2p/go-ethereum/go-ethereum-1.16.7.ebuild index 4ba4c04888f1..69c0199843ae 100644 --- a/net-p2p/go-ethereum/go-ethereum-1.16.7.ebuild +++ b/net-p2p/go-ethereum/go-ethereum-1.16.7.ebuild @@ -21,6 +21,8 @@ IUSE="devtools" # Does all kinds of wonky stuff like connecting to Docker daemon, network activity, ... RESTRICT+=" test" +PATCHES=( "${FILESDIR}/go-ethereum-1.16.7-dont-strip.patch" ) + src_unpack() { default mv "${S}/.mod" "${WORKDIR}/go-mod" || die
