From e2dabd04cd30dcd96d92ee80cf5cba26ae8ecc72 Mon Sep 17 00:00:00 2001 From: Conrad Kostecki Date: Tue, 2 Jan 2024 20:16:41 +0100 Subject: app-benchmarks/geekbench-ml: remove insecure RUNPATHs Closes: https://bugs.gentoo.org/920361 Signed-off-by: Conrad Kostecki --- .../geekbench-ml/geekbench-ml-0.6.0-r1.ebuild | 47 ++++++++++++++++++++++ .../geekbench-ml/geekbench-ml-0.6.0.ebuild | 38 ----------------- 2 files changed, 47 insertions(+), 38 deletions(-) create mode 100644 app-benchmarks/geekbench-ml/geekbench-ml-0.6.0-r1.ebuild delete mode 100644 app-benchmarks/geekbench-ml/geekbench-ml-0.6.0.ebuild (limited to 'app-benchmarks') diff --git a/app-benchmarks/geekbench-ml/geekbench-ml-0.6.0-r1.ebuild b/app-benchmarks/geekbench-ml/geekbench-ml-0.6.0-r1.ebuild new file mode 100644 index 000000000000..db472985aa6c --- /dev/null +++ b/app-benchmarks/geekbench-ml/geekbench-ml-0.6.0-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="A Cross-Platform ML workloads Benchmark" +HOMEPAGE="https://www.geekbench.com/" +SRC_URI="amd64? ( https://cdn.geekbench.com/GeekbenchML-${PV}-Linux.tar.gz )" +S="${WORKDIR}/GeekbenchML-${PV}-Linux" + +KEYWORDS="-* ~amd64" +LICENSE="geekbench" +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} + + insinto /opt/geekbench-ml + doins banff.plar banff-workload.plar + + dodir /opt/bin + dosym ../geekbench-ml/banff /opt/bin/geekbench-ml +} + +pkg_postinst() { + elog "If you have purchased a commercial license, you can enter" + elog "your email address and your license key with the following command:" + elog "geekbench-ml -r " +} diff --git a/app-benchmarks/geekbench-ml/geekbench-ml-0.6.0.ebuild b/app-benchmarks/geekbench-ml/geekbench-ml-0.6.0.ebuild deleted file mode 100644 index f5cf63b3ca7d..000000000000 --- a/app-benchmarks/geekbench-ml/geekbench-ml-0.6.0.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DESCRIPTION="A Cross-Platform ML workloads Benchmark" -HOMEPAGE="https://www.geekbench.com/" -SRC_URI="amd64? ( https://cdn.geekbench.com/GeekbenchML-${PV}-Linux.tar.gz )" -S="${WORKDIR}/GeekbenchML-${PV}-Linux" - -KEYWORDS="-* ~amd64" -LICENSE="geekbench" -SLOT="6" - -RESTRICT="bindist mirror" - -QA_PREBUILT=" - opt/geekbench-ml/banff_avx2 - opt/geekbench-ml/banff_x86_64 - opt/geekbench-ml/banff -" - -src_install() { - exeinto /opt/geekbench-ml - doexe banff{,_avx2,_x86_64} - - insinto /opt/geekbench-ml - doins banff.plar banff-workload.plar - - dodir /opt/bin - dosym ../geekbench-ml/banff /opt/bin/geekbench-ml -} - -pkg_postinst() { - elog "If you have purchased a commercial license, you can enter" - elog "your email address and your license key with the following command:" - elog "geekbench-ml -r " -} -- cgit v1.2.3-65-gdbad