summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/roctracer/roctracer-6.1.1.ebuild')
-rw-r--r--dev-util/roctracer/roctracer-6.1.1.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/dev-util/roctracer/roctracer-6.1.1.ebuild b/dev-util/roctracer/roctracer-6.1.1.ebuild
index dd48dffc4b81..ad93bd9c3718 100644
--- a/dev-util/roctracer/roctracer-6.1.1.ebuild
+++ b/dev-util/roctracer/roctracer-6.1.1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..13} )
LLVM_COMPAT=( 18 )
ROCM_VERSION=${PV}
@@ -41,6 +41,10 @@ python_check_deps() {
"dev-python/ply[${PYTHON_USEDEP}]"
}
+pkg_setup() {
+ python-any-r1_pkg_setup
+}
+
src_prepare() {
cmake_src_prepare
@@ -56,6 +60,9 @@ src_prepare() {
# Fix search path for HIP cmake
sed -e "s,\${ROCM_PATH}/lib/cmake,/usr/$(get_libdir)/cmake,g" -i test/CMakeLists.txt || die
+
+ # bug #892732
+ sed -i -e 's/-Werror//' CMakeLists.txt || die
}
src_configure() {
@@ -63,6 +70,7 @@ src_configure() {
-DCMAKE_MODULE_PATH="${EPREFIX}/usr/$(get_libdir)/cmake/hip"
-DFILE_REORG_BACKWARD_COMPATIBILITY=OFF
-DWITH_TESTS=$(usex test)
+ -DPython3_EXECUTABLE="${PYTHON}"
)
use test && mycmakeargs+=(
-DHIP_ROOT_DIR="${EPREFIX}/usr"