diff options
author | Sv. Lockal <lockalsash@gmail.com> | 2024-03-26 17:17:47 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-06-26 10:19:10 +0100 |
commit | a14fcb6bbd8a459e3d3ccfa3a893b50d32918a31 (patch) | |
tree | 5eec4244972fa4801f30a70f0a325d755cfa06af /dev-libs | |
parent | dev-build/rocm-cmake: add 6.1.1 (diff) | |
download | gentoo-a14fcb6bbd8a459e3d3ccfa3a893b50d32918a31.tar.gz gentoo-a14fcb6bbd8a459e3d3ccfa3a893b50d32918a31.tar.bz2 gentoo-a14fcb6bbd8a459e3d3ccfa3a893b50d32918a31.zip |
dev-libs/rocm-device-libs: drop 6.0.0, add symlink for clang in 6.1.1
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/rocm-device-libs/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/rocm-device-libs/rocm-device-libs-6.0.0.ebuild | 68 | ||||
-rw-r--r-- | dev-libs/rocm-device-libs/rocm-device-libs-6.1.1.ebuild | 9 |
3 files changed, 5 insertions, 73 deletions
diff --git a/dev-libs/rocm-device-libs/Manifest b/dev-libs/rocm-device-libs/Manifest index 3e1762b09f72..a3682ad63840 100644 --- a/dev-libs/rocm-device-libs/Manifest +++ b/dev-libs/rocm-device-libs/Manifest @@ -4,4 +4,3 @@ DIST rocm-device-libs-5.3.3.tar.gz 245690 BLAKE2B 475c0d818b8b0f090a8daeca2910cd DIST rocm-device-libs-5.4.3.tar.gz 246095 BLAKE2B eb749346c96d465a5f22831968ccbd71f02749e6aa0d9c2becc0f378641ca0f65c1a131bfd3ed226f838b4208091fcc920b1e31b427adbd69a42881898668e6a SHA512 67b904363a3cff6c15bbd032cbc72cb5cd5f82acaa68c74391dbcf415266e8f35486a496b69b69e1fc0721e0e4e21fb6a6b9c180a46cb59cdcf53916be846ca4 DIST rocm-device-libs-5.5.1.tar.gz 245900 BLAKE2B f713b1f12c7be33a4854d79791f592b8e89e2bc463769ec8cdd807483f0e5ca93d7fc852b6cf41d5ad0401d07adc97de9fb1fa54b77af83f665e282d6c0a43e7 SHA512 0138ddc94ce4a81202bdafccbbecef8145c6ddf82c3a14d92bb80b2bed3d3b73898f84279cef89110c50a9cc51e32de1323cc11a1f97c5da4f7f843b393425d0 DIST rocm-device-libs-5.7.1.tar.gz 248357 BLAKE2B 829704382e9420ad79724a250ccfd65278eb697498805297d1a52b8ea35dbff46e11514b681243d61bfac05b8a9734f0cf22d721603e48fe2f9864368222b0bc SHA512 8755d0584fa3b8239f5642b4fb8f5e8dea20bbaca2ff8883894d3583913e9a1fd1552492b36e8ceff092f795783b734e68b002ee0c93711dccdf8e72c528c27c -DIST rocm-device-libs-6.0.0.tar.gz 248509 BLAKE2B 797a612f4b36b83643b15711bec32c1ceac73103b51d42abb890a241b8224b7c6de33bf88a9c6620db2af9be4641fc709b9610515203177482422c97d5b01044 SHA512 e9f2d7e86ec4cbcd0f471bf45d056c4a9272ee0ec3286a9aa42e819fa5d3ce52c9b12e9a4f575c409fe9b46253b8910f49d5ba0bae3694f8c38970658a19f706 diff --git a/dev-libs/rocm-device-libs/rocm-device-libs-6.0.0.ebuild b/dev-libs/rocm-device-libs/rocm-device-libs-6.0.0.ebuild deleted file mode 100644 index 8724dec2d549..000000000000 --- a/dev-libs/rocm-device-libs/rocm-device-libs-6.0.0.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LLVM_COMPAT=( 17 ) -inherit cmake llvm-r1 - -if [[ ${PV} == *9999 ]] ; then - EGIT_REPO_URI="https://github.com/ROCm/ROCm-Device-Libs.git" - inherit git-r3 - S="${WORKDIR}/${P}/src" -else - SRC_URI="https://github.com/ROCm/ROCm-Device-Libs/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz" - S="${WORKDIR}/ROCm-Device-Libs-rocm-${PV}" - KEYWORDS="~amd64" -fi - -DESCRIPTION="Radeon Open Compute Device Libraries" -HOMEPAGE="https://github.com/ROCm/ROCm-Device-Libs" - -LICENSE="MIT" -SLOT="0/$(ver_cut 1-2)" -IUSE="test" -RESTRICT="strip !test? ( test )" - -RDEPEND=" - $(llvm_gen_dep ' - sys-devel/clang:${LLVM_SLOT} - ') -" -DEPEND="${RDEPEND}" - -CMAKE_BUILD_TYPE=Release - -PATCHES=( - "${FILESDIR}/${PN}-5.5.0-test-bitcode-dir.patch" - "${FILESDIR}/${PN}-5.5.1-fix-llvm-link.patch" - "${FILESDIR}/${PN}-5.5.1-remove-gfx700-tests.patch" - "${FILESDIR}/${PN}-6.0.0-add-gws-attribute.patch" -) - -src_prepare() { - sed -e "s:amdgcn/bitcode:lib/amdgcn/bitcode:" -i "${S}/cmake/OCL.cmake" || die - sed -e "s:amdgcn/bitcode:lib/amdgcn/bitcode:" -i "${S}/cmake/Packages.cmake" || die - cmake_src_prepare -} - -src_configure() { - local mycmakeargs=( - -DLLVM_DIR="$(get_llvm_prefix)" - ) - cmake_src_configure -} - -src_test() { - local CMAKE_SKIP_TESTS=( - compile_frexp__gfx600 - ) - cmake_src_test -} - -src_install() { - cmake_src_install - local CLANG_EXE="$(get_llvm_prefix)/bin/clang" - local bitcodedir="$("${CLANG_EXE}" -print-resource-dir)/$(get_libdir)/amdgcn/bitcode" - dosym -r "/usr/lib/amdgcn/bitcode" "${bitcodedir#${EPREFIX}}" -} diff --git a/dev-libs/rocm-device-libs/rocm-device-libs-6.1.1.ebuild b/dev-libs/rocm-device-libs/rocm-device-libs-6.1.1.ebuild index 91d34a16bf69..04fd989b95cb 100644 --- a/dev-libs/rocm-device-libs/rocm-device-libs-6.1.1.ebuild +++ b/dev-libs/rocm-device-libs/rocm-device-libs-6.1.1.ebuild @@ -27,12 +27,13 @@ SLOT="0/$(ver_cut 1-2)" IUSE="test" RESTRICT="!test? ( test )" -RDEPEND=" +BDEPEND=" + dev-build/rocm-cmake $(llvm_gen_dep ' sys-devel/clang:${LLVM_SLOT} + sys-devel/lld:${LLVM_SLOT} ') " -DEPEND="${RDEPEND}" CMAKE_BUILD_TYPE=Release @@ -42,7 +43,7 @@ PATCHES=( "${FILESDIR}/${PN}-6.0.0-add-gws-attribute.patch" "${FILESDIR}/${PN}-6.1.0-fix-test-failures.patch" "${FILESDIR}/${PN}-6.1.0-fix-test-failures2.patch" - ) +) src_unpack() { if [[ ${PV} == *9999 ]] ; then @@ -68,7 +69,6 @@ src_configure() { local mycmakeargs=( -DLLVM_DIR="$(get_llvm_prefix)" ) - cmake_src_configure # do not trust CMake with autoselecting Clang, as it autoselects the latest one # producing too modern LLVM bitcode and causing linker errors in other packages CC="$(get_llvm_prefix)/bin/clang" CXX="$(get_llvm_prefix)/bin/clang++" cmake_src_configure @@ -77,6 +77,7 @@ src_configure() { src_install() { cmake_src_install local CLANG_EXE="$(get_llvm_prefix)/bin/clang" + # install symlink, so that clang won't ask for "--rocm-device-lib-path" flag anymore local bitcodedir="$("${CLANG_EXE}" -print-resource-dir)/$(get_libdir)/amdgcn/bitcode" dosym -r "/usr/lib/amdgcn/bitcode" "${bitcodedir#${EPREFIX}}" } |