diff --git a/dev-libs/rocr-runtime/files/rocr-runtime-7.2.0-use-system-hsakmt.patch b/dev-libs/rocr-runtime/files/rocr-runtime-7.2.0-use-system-hsakmt.patch
index aa012ed..126d991 100644
--- a/dev-libs/rocr-runtime/files/rocr-runtime-7.2.0-use-system-hsakmt.patch
+++ b/dev-libs/rocr-runtime/files/rocr-runtime-7.2.0-use-system-hsakmt.patch
@@ -1,7 +1,7 @@
libhsakmt is a part of dev-libs/roct-thunk-interface
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
-@@ -112,11 +112,16 @@ if (NOT DEFINED BUILD_THUNK_VIRTIO)
+@@ -125,11 +125,19 @@
set(BUILD_THUNK_VIRTIO OFF)
endif()
@@ -14,6 +14,9 @@ libhsakmt is a part of dev-libs/roct-thunk-interface
+else()
+ find_package(hsakmt REQUIRED)
+ add_library(hsakmt ALIAS hsakmt::hsakmt)
++ # hsakmt/linux/kfd_ioctl.h is build-only (libhsakmt install excludes PATTERN "linux");
++ # keep the bundled copy on the include path for amd_core_dump.cpp.
++ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libhsakmt/include)
+endif()
if (WIN32)
set_target_properties(hsakmt PROPERTIES
dev-libs/rocr-runtime: keep bundled hsakmt/linux header on include path
10.1's libamdhsacode/lnx/amd_core_dump.cpp includes hsakmt/linux/kfd_ioctl.h, but libhsakmt's install rule excludes the linux/ subdir (PATTERN "linux" EXCLUDE), so the system hsakmt from roct-thunk-interface does not ship it. With the use-system-hsakmt patch the bundled include dir was dropped, so the header was not found. Extend the patch: when using the system hsakmt, add the bundled libhsakmt/include to the include path (the header is version-matched to the source).
bb80b6dfff6426bb15e10c2607966f913bed87d7
cjosie <administrator@josie-c.com> · 2026-10-14T19:18 ·
browse files at this commit
parents:
ded07b2