mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 12:03:02 -04:00
dev-util/webstorm: using tc-exported OBJCOPY instead of direct binary
Signed-off-by: Stefan Cristian B. <stefan.cristian+git@rogentos.ro>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop wrapper
|
||||
inherit desktop wrapper toolchain-funcs
|
||||
|
||||
DESCRIPTION="An integrated development environment for JavaScript and related technologies."
|
||||
HOMEPAGE="https://www.jetbrains.com/webstorm/"
|
||||
@@ -51,6 +51,7 @@ src_unpack() {
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
tc-export OBJCOPY
|
||||
default
|
||||
|
||||
local remove_me=(
|
||||
@@ -65,7 +66,7 @@ src_prepare() {
|
||||
# as they should not be executed
|
||||
find . -type f ! -name '*$(*)*' -exec sh -c '
|
||||
if file "{}" | grep -qE "ELF (32|64)-bit"; then
|
||||
objcopy --remove-section .note.gnu.build-id "{}"
|
||||
${OBJCOPY} --remove-section .note.gnu.build-id "{}"
|
||||
debugedit -b "${EPREFIX}/opt/${PN}" -d "/usr/lib/debug" -i "{}"
|
||||
fi
|
||||
' \;
|
||||
|
||||
Reference in New Issue
Block a user