diff options
author | Aliaksei Urbanski <aliaksei.urbanski@gmail.com> | 2024-06-26 06:54:29 +0300 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-06-28 17:59:57 +0100 |
commit | 346e44ed6db289af634a9f88a5624430ca13f3aa (patch) | |
tree | c4ef6cff62bd54ddbfa74cdac82cbb04f4f91889 /media-libs/oidn | |
parent | media-libs/oidn: fix a not used CMake variable in 2.2.2 (diff) | |
download | gentoo-346e44ed6db289af634a9f88a5624430ca13f3aa.tar.gz gentoo-346e44ed6db289af634a9f88a5624430ca13f3aa.tar.bz2 gentoo-346e44ed6db289af634a9f88a5624430ca13f3aa.zip |
media-libs/oidn: fix missing ROCm in 2.x
Closes: https://bugs.gentoo.org/930391
Signed-off-by: Aliaksei Urbanski <aliaksei.urbanski@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/oidn')
-rw-r--r-- | media-libs/oidn/oidn-2.1.0.ebuild | 10 | ||||
-rw-r--r-- | media-libs/oidn/oidn-2.2.2.ebuild | 6 |
2 files changed, 16 insertions, 0 deletions
diff --git a/media-libs/oidn/oidn-2.1.0.ebuild b/media-libs/oidn/oidn-2.1.0.ebuild index f3b63b4ce34d..6f9b87d1f737 100644 --- a/media-libs/oidn/oidn-2.1.0.ebuild +++ b/media-libs/oidn/oidn-2.1.0.ebuild @@ -43,6 +43,16 @@ PATCHES=( "${FILESDIR}/${PN}-2.1.0-amdgpu-targets.patch" ) +src_prepare() { + if use hip; then + # https://bugs.gentoo.org/930391 + sed "/-Wno-unused-result/s:): --rocm-path=${EPREFIX}/usr/lib):" \ + -i devices/hip/CMakeLists.txt || die + fi + + cmake_src_prepare +} + src_configure() { local mycmakeargs=( -DOIDN_DEVICE_CUDA=$(usex cuda) diff --git a/media-libs/oidn/oidn-2.2.2.ebuild b/media-libs/oidn/oidn-2.2.2.ebuild index 4dcd0fbebb18..1d059c48a8b6 100644 --- a/media-libs/oidn/oidn-2.2.2.ebuild +++ b/media-libs/oidn/oidn-2.2.2.ebuild @@ -50,6 +50,12 @@ src_prepare() { addpredict "/proc/self/task/" fi + if use hip; then + # https://bugs.gentoo.org/930391 + sed "/-Wno-unused-result/s:): --rocm-path=${EPREFIX}/usr/lib):" \ + -i devices/hip/CMakeLists.txt || die + fi + sed -e "/^install.*llvm_macros.cmake.*cmake/d" -i CMakeLists.txt || die cmake_src_prepare |