media-libs/oidn: Fix hip compilation errors

Debundling the included sci-libs/composable-kernel lib lead to
compilation issues. Because it took over 12 hours to compile
sci-libs/composable-kernel on my computer, and less than 10 minutes to
compile oidn with the bundled composable-kernel lib, I think it is best
to not debundle this library.

Closes: https://bugs.gentoo.org/955869
Signed-off-by: Sebastian Parborg <darkdefende@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42204
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sebastian Parborg
2025-05-22 17:06:55 +01:00
committed by Sam James
parent 9ba1c290b1
commit fa8c87fbc4
@@ -39,7 +39,6 @@ RDEPEND="
)
hip? (
dev-util/hip:=
sci-libs/composable-kernel
)
openimageio? ( media-libs/openimageio:= )
"
@@ -64,7 +63,10 @@ src_prepare() {
# do not fortify source -- bug 895018
sed -e "s/-D_FORTIFY_SOURCE=2//g" -i {cmake/oidn_platform,external/mkl-dnn/cmake/SDL}.cmake || die
rm -r external/{composable_kernel,cutlass,mkl-dnn} || die
# Don't de-bundle composable_kernel for two reasons:
# 1. sci-libs/composable-kernel takes a very long time to compile and oidn only uses a subset of it.
# 2. We've run into compilation issues when trying to debundle it. See #955869
rm -r external/{cutlass,mkl-dnn} || die
cmake_src_prepare
}