app-benchmarks/geekbench-ml: remove insecure RUNPATHs

Closes: https://bugs.gentoo.org/920361
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
Conrad Kostecki
2024-01-02 20:16:41 +01:00
parent 946160ad99
commit e2dabd04cd

View File

@@ -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}