public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Aaron Chan <aaron.chun.yew.chan@intel.com>
To: git-commits@fedoraproject.org
Subject: [rpms/openvino] rawhide: Cleanup %prep using git fetch operations
Date: Thu, 19 Nov 2026 11:11:14 GMT	[thread overview]
Message-ID: <179508667471.1.12074554478944600833.rpms-openvino-0fb2111feb00@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/openvino
            Branch : rawhide
            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=rawhide

            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 "")

                 reply	other threads:[~2026-11-19 11:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179508667471.1.12074554478944600833.rpms-openvino-0fb2111feb00@fedoraproject.org \
    --to=aaron.chun.yew.chan@intel.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox