commit:     5497c637970a31b52799d9e73f9b58a06f9b2586
Author:     Stefan Cristian B. <stefan.cristian+git <AT> rogentos <DOT> ro>
AuthorDate: Wed Mar 26 14:28:28 2025 +0000
Commit:     Stefan Cristian B. <stefan.cristian+git <AT> rogentos <DOT> ro>
CommitDate: Wed Mar 26 14:28:28 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5497c637

dev-util/webstorm: using tc-exported OBJCOPY instead of direct binary

Signed-off-by: Stefan Cristian B. <stefan.cristian+git <AT> rogentos.ro>

 dev-util/webstorm/webstorm-2024.3.5.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dev-util/webstorm/webstorm-2024.3.5.ebuild 
b/dev-util/webstorm/webstorm-2024.3.5.ebuild
index 6cb649f6c..f04fb046f 100644
--- a/dev-util/webstorm/webstorm-2024.3.5.ebuild
+++ b/dev-util/webstorm/webstorm-2024.3.5.ebuild
@@ -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
                ' \;

Reply via email to