summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSv. Lockal <lockalsash@gmail.com>2024-06-26 13:09:22 +0000
committerSam James <sam@gentoo.org>2024-06-27 02:24:13 +0100
commit8c5386403a9a166230b29924b19568d5140ca9be (patch)
tree334b4e57a358bc9421ca0e9a4b4df3f0108ef26e /dev-util/roctracer
parentnet-dns/smartdns: drop 43, 45 (diff)
downloadgentoo-8c5386403a9a166230b29924b19568d5140ca9be.tar.gz
gentoo-8c5386403a9a166230b29924b19568d5140ca9be.tar.bz2
gentoo-8c5386403a9a166230b29924b19568d5140ca9be.zip
dev-util/roctracer: bugfixes for 6.1.1
* specify python executable for cmake, otherwise it uses latest * remove -Werror from hardcoded flags * enable py3.13 Closes: https://bugs.gentoo.org/934969 Closes: https://bugs.gentoo.org/892732 Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/37310 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/roctracer')
-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"