public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/openvino] f45: Cleanup %prep using git fetch operations
@ 2026-11-24 19:41 Aaron Chan
  0 siblings, 0 replies; only message in thread
From: Aaron Chan @ 2026-11-24 19:41 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/openvino
            Branch : f45
            Commit : 0fb2111feb0082933177b6784469ec3352758854
            Author : Aaron Chan <aaron.chun.yew.chan@intel.com>
            Date   : 2026-10-28T15:48:57+08:00
            Stats  : +22/-26 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/openvino/c/0fb2111feb0082933177b6784469ec3352758854?branch=f45

            Log:
            Cleanup %prep using git fetch operations

- remove git fetch ops for NPU compiler and its deps
- add patch to unblock npu compiler build error due to git-rev
- reorder patches in sequence

Signed-off-by: Aaron Chan <aaron.chun.yew.chan@intel.com>

---
diff --git a/openvino.spec b/openvino.spec
index 6e46ea9..1a831bd 100644
--- a/openvino.spec
+++ b/openvino.spec
@@ -58,9 +58,10 @@ Patch3: pybind11-call_guard-compat.patch
 # that dropped the CL_HPP_PARAM_NAME_INFO_1_1_DEPRECATED_IN_2_0_ macro
 # OpenVINO's GPU plugin relied on.
 Patch4: opencl-clhpp-deprecated-macro.patch
-Patch5: vpux-driver-compiler-CMakeLists.patch
-Patch6: cmake-lib_install.patch
-Patch7: cpack_packaging_rpm_cid.patch
+Patch5: cpack_packaging_rpm_cid.patch
+Patch6: vpux-driver-compiler-CMakeLists.patch
+Patch7: remove-compiler-commit-hash-error.patch
+Patch8: cmake-lib_install.patch
 
 ExclusiveArch:  x86_64
 
@@ -331,7 +332,7 @@ preprocessing methods and output comparison algorithms depending on model topolo
 %patch -P 2 -p1
 %patch -P 3 -p1
 %patch -P 4 -p1
-%patch -P 7 -p1
+%patch -P 5 -p1
 
 # Fedora provides newer NumPy versions
 sed -i 's/numpy>=1\.16\.6,<2\.5\.0/numpy>=1.16.6/' pyproject.toml
@@ -361,35 +362,16 @@ tar xf %{SOURCE6} -C src/plugins/intel_npu/thirdparty/level-zero-ext --strip-com
 rm -rf %{npu_compiler_path}
 mkdir -p %{npu_compiler_path}
 tar xf %{SOURCE7}  -C %{npu_compiler_path} --strip-components=1
-git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} config --global user.email "buildinfra@fedoraproject.org"
-git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} config --global user.name "Fedora Project"
-git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} config --global --add safe.directory %{_builddir}/%{name}-%{version}/%{npu_compiler_path}
-git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} config --global pull.rebase true
-git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} init -q
-git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} remote add origin https://github.com/openvinotoolkit/npu_compiler
-git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} fetch --all
-git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} add .
-git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} commit -m "initial commit"
-git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} pull origin %{npu_compiler_rev}
-git -C %{_builddir}/%{name}-%{version}/%{npu_compiler_path} log -1 --oneline
-%patch -d %{npu_compiler_path} -P 5 -p1
+%patch -d %{npu_compiler_path} -P 6 -p1
+%patch -d %{npu_compiler_path} -P 7 -p1
 tar xf %{SOURCE8}  -C %{npu_compiler_path}/thirdparty/elf --strip-components=1
-%patch -d %{npu_compiler_path}/thirdparty/elf -P 6 -p1
+%patch -d %{npu_compiler_path}/thirdparty/elf -P 8 -p1
 tar xf %{SOURCE9}  -C %{npu_compiler_path}/thirdparty/gtest-parallel --strip-components=1
 tar xf %{SOURCE10} -C %{npu_compiler_path}/thirdparty/llvm-project --strip-components=1
 tar xf %{SOURCE11} -C %{npu_compiler_path}/thirdparty/vpucostmodel --strip-components=1
 
 # Intel NPU Plugin thirdparty deps
 tar xf %{SOURCE12} -C %{flatbuffers_path} --strip-components=1
-rm -rf %{flatbuffers_path}/.git
-git -C %{builddir}/%{name}-%{version}/%{flatbuffers_path} config --global --add safe.directory %{builddir}/%{name}-%{version}/%{flatbuffers_path}
-git -C %{builddir}/%{name}-%{version}/%{flatbuffers_path} init -q
-git -C %{builddir}/%{name}-%{version}/%{flatbuffers_path} remote add origin https://github.com/google/flatbuffers
-git -C %{builddir}/%{name}-%{version}/%{flatbuffers_path} fetch --all
-git -C %{builddir}/%{name}-%{version}/%{flatbuffers_path} add .
-git -C %{builddir}/%{name}-%{version}/%{flatbuffers_path} commit -m "initial commit"
-git -C %{builddir}/%{name}-%{version}/%{flatbuffers_path} pull origin v24.3.25
-git -C %{builddir}/%{name}-%{version}/%{flatbuffers_path} describe
 
 %build
 %cmake \

diff --git a/remove-compiler-commit-hash-error.patch b/remove-compiler-commit-hash-error.patch
new file mode 100644
index 0000000..3b9987c
--- /dev/null
+++ b/remove-compiler-commit-hash-error.patch
@@ -0,0 +1,14 @@
+diff --git a/cmake/compiler_commit_hash.cmake b/cmake/compiler_commit_hash.cmake
+index 7617a6df8..2978ac2df 100644
+--- a/cmake/compiler_commit_hash.cmake
++++ b/cmake/compiler_commit_hash.cmake
+@@ -13,7 +13,8 @@ execute_process(
+ )
+ 
+ if (NOT ${ERROR_CODE} EQUAL 0)
+-    message(FATAL_ERROR "Failed to capture compiler git commit.")
++    message(WARNING "Failed to capture compiler git commit at ${REPO_DIR}, error code return ${ERROR_CODE}")
++    set(CURRENT_COMMIT_HASH "")
+ endif()
+ 
+ set(LAST_COMMIT_HASH "")

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-24 19:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-24 19:41 [rpms/openvino] f45: Cleanup %prep using git fetch operations Aaron Chan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox