commit: ccc63180365ecb96cde53a5f8c36608653c7f030 Author: YiyangWu <xgreenlandforwyy <AT> gmail <DOT> com> AuthorDate: Mon Mar 7 15:13:15 2022 +0000 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> CommitDate: Sun May 1 08:44:38 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccc63180
dev-libs/rocm-comgr: correct LLVM_PATH and HIP_PATH Fixes comgr cannot find correct hipcc and llvm-roc clang include path. Closes: https://github.com/gentoo/gentoo/pull/24439 Closes: https://bugs.gentoo.org/834674 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Yiyang Wu <xgreenlandforwyy <AT> gmail.com> Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> dev-libs/rocm-comgr/rocm-comgr-4.3.0-r1.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) 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 index 192ddca854e1..fcb897e2ab38 100644 --- a/dev-libs/rocm-comgr/rocm-comgr-4.3.0-r1.ebuild +++ b/dev-libs/rocm-comgr/rocm-comgr-4.3.0-r1.ebuild @@ -29,6 +29,12 @@ RDEPEND=">=dev-libs/rocm-device-libs-${PV} >=sys-devel/llvm-roc-${PV}:=" DEPEND="${RDEPEND}" +src_prepare() { + sed '/sys::path::append(HIPPath/s,"hip","lib/hip",' -i src/comgr-env.cpp || die + sed '/sys::path::append(LLVMPath/s,"llvm","lib/llvm/roc",' -i src/comgr-env.cpp || die + cmake_src_prepare +} + src_configure() { local mycmakeargs=( -DLLD_DIR="${EPREFIX}/usr/lib/llvm/roc/lib/cmake/lld"
