public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/openvino] origin/pr/8/head: Fix build against CMake 4.0.0 and later in rawhide
@ 2026-06-11 16:10 Alexander F. Lent
0 siblings, 0 replies; only message in thread
From: Alexander F. Lent @ 2026-06-11 16:10 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/openvino
Branch : origin/pr/8/head
Commit : 9339fade5e5b34aa3170ef655423d80e7f1c940d
Author : Alexander F. Lent <lx@xanderlent.com>
Date : 2025-03-03T12:01:58+00:00
Stats : +18/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/openvino/c/9339fade5e5b34aa3170ef655423d80e7f1c940d?branch=origin/pr/8/head
Log:
Fix build against CMake 4.0.0 and later in rawhide
The bundled custom oneDNN sources have too old of a default CMake version.
CMake 4.0.0-rc2 and newer only support backwards compatability with 3.5 and newer.
So, patch the oneDNN sources to build under this constraint.
Signed-off-by: Alexander F. Lent <lx@xanderlent.com>
---
diff --git a/onednn-minimum-cmake-version.patch b/onednn-minimum-cmake-version.patch
new file mode 100644
index 0000000..7d6dd4a
--- /dev/null
+++ b/onednn-minimum-cmake-version.patch
@@ -0,0 +1,12 @@
+diff -ur a/src/plugins/intel_cpu/thirdparty/onednn/CMakeLists.txt b/src/plugins/intel_cpu/thirdparty/onednn/CMakeLists.txt
+--- a/src/plugins/intel_cpu/thirdparty/onednn/CMakeLists.txt 2024-10-24 07:23:20.000000000 -0400
++++ b/src/plugins/intel_cpu/thirdparty/onednn/CMakeLists.txt 2024-10-24 07:23:20.000000000 -0400
+@@ -14,7 +14,7 @@
+ # limitations under the License.
+ #===============================================================================
+
+-cmake_minimum_required(VERSION 2.8.12)
++cmake_minimum_required(VERSION 2.8.12...3.5)
+
+ if(POLICY CMP0022)
+ cmake_policy(SET CMP0022 NEW)
diff --git a/openvino.spec b/openvino.spec
index 3f803b4..1ad0243 100644
--- a/openvino.spec
+++ b/openvino.spec
@@ -51,6 +51,8 @@ Patch0: openvino-fedora.patch
Patch1: https://github.com/openvinotoolkit/openvino/pull/28039.patch
Patch2: npu-level-zero.patch
Patch3: onnx-frontend-enable.patch
+# Fix the oneDNN build on CMake 4.0.0 and later
+Patch4: onednn-minimum-cmake-version.patch
ExclusiveArch: x86_64
@@ -136,7 +138,8 @@ code. Python API provides bindings to basic and advanced APIs from OpenVINO
runtime.
%prep
-%autosetup -p1
+# autosetup without patching, since we need to patch one of the bundled libraries
+%autosetup -N
# Remove the thirdparty deps
rm -rf thirdparty/*
@@ -145,6 +148,8 @@ cp %{SOURCE4} thirdparty/
# Intel-cpu-plugin thirdparty deps
tar xf %{SOURCE1}
cp -r oneDNN-*/* src/plugins/intel_cpu/thirdparty/onednn
+# autopatch will apply all the patches, now that we have unpacked enough of the bundled libraries
+%autopatch -p1
tar xf %{SOURCE2}
cp -r mlas-*/* src/plugins/intel_cpu/thirdparty/mlas
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-11 16:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-11 16:10 [rpms/openvino] origin/pr/8/head: Fix build against CMake 4.0.0 and later in rawhide Alexander F. Lent
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox