summaryrefslogtreecommitdiff
path: root/dev-libs/intel-compute-runtime/files
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-03-28 20:07:49 +0200
committerConrad Kostecki <conikost@gentoo.org>2022-03-28 20:10:58 +0200
commit10feccdc2c27e62b43865cdacf2e572a26f08dde (patch)
treef9337e4090284cb8c2884e2581a3255baae8d458 /dev-libs/intel-compute-runtime/files
parente5153513eee90c6cffb5218a0bbf9da06f1682f8 (diff)
downloadgentoo-10feccdc2c27e62b43865cdacf2e572a26f08dde.tar.gz
gentoo-10feccdc2c27e62b43865cdacf2e572a26f08dde.tar.bz2
gentoo-10feccdc2c27e62b43865cdacf2e572a26f08dde.zip
dev-libs/intel-compute-runtime: add 22.12.22749
Bug: https://bugs.gentoo.org/836331 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-libs/intel-compute-runtime/files')
-rw-r--r--dev-libs/intel-compute-runtime/files/intel-compute-runtime-22.12.22749-metrics.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-libs/intel-compute-runtime/files/intel-compute-runtime-22.12.22749-metrics.patch b/dev-libs/intel-compute-runtime/files/intel-compute-runtime-22.12.22749-metrics.patch
new file mode 100644
index 000000000000..f1449916ea70
--- /dev/null
+++ b/dev-libs/intel-compute-runtime/files/intel-compute-runtime-22.12.22749-metrics.patch
@@ -0,0 +1,37 @@
+From a968cb223ea60d476d191a1f61dd4791178aacb4 Mon Sep 17 00:00:00 2001
+From: Grzegorz Choinski <grzegorz.choinski@intel.com>
+Date: Fri, 11 Mar 2022 18:41:30 +0000
+Subject: [PATCH] disable metrics discovery detection
+
+Disabling metrics discovery detection due to conflicts that the name libmd
+creates with packages from ubuntu.
+
+Signed-off-by: Grzegorz Choinski <grzegorz.choinski@intel.com>
+---
+ cmake/find_metrics.cmake | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/cmake/find_metrics.cmake b/cmake/find_metrics.cmake
+index e97e1d20b66..89445229b30 100644
+--- a/cmake/find_metrics.cmake
++++ b/cmake/find_metrics.cmake
+@@ -28,7 +28,9 @@ function(dependency_detect COMPONENT_NAME DLL_NAME VAR_NAME REL_LOCATION IS_THIR
+ set(OLD_PKG_CONFIG_PATH $ENV{PKG_CONFIG_PATH})
+ set(ENV{PKG_CONFIG_PATH} "${LIBRARY_DIR}/${__tmp_LIBDIR}/pkgconfig/")
+ endif()
+- pkg_check_modules(NEO__${VAR_NAME} ${DLL_NAME})
++ if(NOT DLL_NAME STREQUAL "")
++ pkg_check_modules(NEO__${VAR_NAME} ${DLL_NAME})
++ endif()
+ if(DEFINED __tmp_LIBDIR)
+ set(ENV{PKG_CONFIG_PATH} ${OLD_PKG_CONFIG_PATH})
+ endif()
+@@ -76,7 +78,7 @@ if(NOT NEO__METRICS_LIBRARY_INCLUDE_DIR STREQUAL "")
+ endif()
+
+ # Metrics Discovery Detection
+-dependency_detect("Metrics Discovery" libmd METRICS_DISCOVERY "../metrics/discovery" TRUE)
++dependency_detect("Metrics Discovery" "" METRICS_DISCOVERY "../metrics/discovery" TRUE)
+ if(NOT NEO__METRICS_DISCOVERY_INCLUDE_DIR STREQUAL "")
+ include_directories("${NEO__METRICS_DISCOVERY_INCLUDE_DIR}")
+ endif()