Gentoo Archives: gentoo-commits

From: Benda XU <heroxbd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/rocm-comgr/
Date: Sun, 01 May 2022 08:44:48
Message-Id: 1651394678.ccc63180365ecb96cde53a5f8c36608653c7f030.heroxbd@gentoo
1 commit: ccc63180365ecb96cde53a5f8c36608653c7f030
2 Author: YiyangWu <xgreenlandforwyy <AT> gmail <DOT> com>
3 AuthorDate: Mon Mar 7 15:13:15 2022 +0000
4 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
5 CommitDate: Sun May 1 08:44:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccc63180
7
8 dev-libs/rocm-comgr: correct LLVM_PATH and HIP_PATH
9
10 Fixes comgr cannot find correct hipcc and llvm-roc clang include path.
11
12 Closes: https://github.com/gentoo/gentoo/pull/24439
13 Closes: https://bugs.gentoo.org/834674
14 Package-Manager: Portage-3.0.30, Repoman-3.0.3
15 Signed-off-by: Yiyang Wu <xgreenlandforwyy <AT> gmail.com>
16 Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
17
18 dev-libs/rocm-comgr/rocm-comgr-4.3.0-r1.ebuild | 6 ++++++
19 1 file changed, 6 insertions(+)
20
21 diff --git a/dev-libs/rocm-comgr/rocm-comgr-4.3.0-r1.ebuild b/dev-libs/rocm-comgr/rocm-comgr-4.3.0-r1.ebuild
22 index 192ddca854e1..fcb897e2ab38 100644
23 --- a/dev-libs/rocm-comgr/rocm-comgr-4.3.0-r1.ebuild
24 +++ b/dev-libs/rocm-comgr/rocm-comgr-4.3.0-r1.ebuild
25 @@ -29,6 +29,12 @@ RDEPEND=">=dev-libs/rocm-device-libs-${PV}
26 >=sys-devel/llvm-roc-${PV}:="
27 DEPEND="${RDEPEND}"
28
29 +src_prepare() {
30 + sed '/sys::path::append(HIPPath/s,"hip","lib/hip",' -i src/comgr-env.cpp || die
31 + sed '/sys::path::append(LLVMPath/s,"llvm","lib/llvm/roc",' -i src/comgr-env.cpp || die
32 + cmake_src_prepare
33 +}
34 +
35 src_configure() {
36 local mycmakeargs=(
37 -DLLD_DIR="${EPREFIX}/usr/lib/llvm/roc/lib/cmake/lld"