commit:     e2dabd04cd30dcd96d92ee80cf5cba26ae8ecc72
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Tue Jan  2 19:16:41 2024 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Tue Jan  2 19:16:41 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2dabd04

app-benchmarks/geekbench-ml: remove insecure RUNPATHs

Closes: https://bugs.gentoo.org/920361
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 ...geekbench-ml-0.6.0.ebuild => geekbench-ml-0.6.0-r1.ebuild} | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/app-benchmarks/geekbench-ml/geekbench-ml-0.6.0.ebuild 
b/app-benchmarks/geekbench-ml/geekbench-ml-0.6.0-r1.ebuild
similarity index 83%
rename from app-benchmarks/geekbench-ml/geekbench-ml-0.6.0.ebuild
rename to app-benchmarks/geekbench-ml/geekbench-ml-0.6.0-r1.ebuild
index f5cf63b3ca7d..db472985aa6c 100644
--- a/app-benchmarks/geekbench-ml/geekbench-ml-0.6.0.ebuild
+++ b/app-benchmarks/geekbench-ml/geekbench-ml-0.6.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -14,12 +14,21 @@ SLOT="6"
 
 RESTRICT="bindist mirror"
 
+BDEPEND="dev-util/patchelf"
+
 QA_PREBUILT="
        opt/geekbench-ml/banff_avx2
        opt/geekbench-ml/banff_x86_64
        opt/geekbench-ml/banff
 "
 
+src_prepare() {
+       default
+
+       # Fix QA insecure RUNPATHs
+       patchelf --remove-rpath banff{,_avx2,_x86_64} || die
+}
+
 src_install() {
        exeinto /opt/geekbench-ml
        doexe banff{,_avx2,_x86_64}

Reply via email to