From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AEE39158090 for ; Sun, 1 May 2022 08:44:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E64E2E0848; Sun, 1 May 2022 08:44:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CC790E0848 for ; Sun, 1 May 2022 08:44:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CE52D341795 for ; Sun, 1 May 2022 08:44:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7073B344 for ; Sun, 1 May 2022 08:44:45 +0000 (UTC) From: "Benda XU" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Benda XU" Message-ID: <1651394678.ccc63180365ecb96cde53a5f8c36608653c7f030.heroxbd@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/rocm-comgr/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/rocm-comgr/rocm-comgr-4.3.0-r1.ebuild X-VCS-Directories: dev-libs/rocm-comgr/ X-VCS-Committer: heroxbd X-VCS-Committer-Name: Benda XU X-VCS-Revision: ccc63180365ecb96cde53a5f8c36608653c7f030 X-VCS-Branch: master Date: Sun, 1 May 2022 08:44:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f23b8eb0-8e23-4a94-8f99-11816fff390f X-Archives-Hash: 3b1faf1fe30f4b533da155159e6d45dd commit: ccc63180365ecb96cde53a5f8c36608653c7f030 Author: YiyangWu gmail com> AuthorDate: Mon Mar 7 15:13:15 2022 +0000 Commit: Benda XU gentoo 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 gmail.com> Signed-off-by: Benda Xu 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"