Gentoo Archives: gentoo-commits

From: "罗百科" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/rocr-runtime/
Date: Thu, 02 Mar 2023 08:54:03
Message-Id: 1677747237.d46ef5409051d8a325ff959f94c10b6981f6ebbb.patrick@gentoo
1 commit: d46ef5409051d8a325ff959f94c10b6981f6ebbb
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 2 08:50:43 2023 +0000
4 Commit: 罗百科 <patrick <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 2 08:53:57 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d46ef540
7
8 dev-libs/rocr-runtime: Fix version detection
9
10 This breaks rocm_bandwidth_test and others downstream as they
11 compare to an internal version string. This silently breaks
12 if git is not installed, so fix it to always be correct.
13
14 Closes: https://bugs.gentoo.org/894064
15 Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>
16
17 .../{rocr-runtime-5.4.3.ebuild => rocr-runtime-5.4.3-r1.ebuild} | 5 +++++
18 1 file changed, 5 insertions(+)
19
20 diff --git a/dev-libs/rocr-runtime/rocr-runtime-5.4.3.ebuild b/dev-libs/rocr-runtime/rocr-runtime-5.4.3-r1.ebuild
21 similarity index 88%
22 rename from dev-libs/rocr-runtime/rocr-runtime-5.4.3.ebuild
23 rename to dev-libs/rocr-runtime/rocr-runtime-5.4.3-r1.ebuild
24 index f408d4213314..f6a8a5598f2a 100644
25 --- a/dev-libs/rocr-runtime/rocr-runtime-5.4.3.ebuild
26 +++ b/dev-libs/rocr-runtime/rocr-runtime-5.4.3-r1.ebuild
27 @@ -44,6 +44,11 @@ src_prepare() {
28 # Gentoo installs "*.bc" to "/usr/lib" instead of a "[path]/bitcode" directory ...
29 sed -e "s:-O2:--rocm-path=${EPREFIX}/usr/lib/ -O2:" -i image/blit_src/CMakeLists.txt || die
30
31 + # internal version depends on git being present and random weird magic, otherwise fallback to incoherent default value
32 + # fix default value to be more better
33 +
34 + sed -i -e "s:1.7.0:${PV}:" CMakeLists.txt || die
35 +
36 cmake_src_prepare
37 }