From: Herton R. Krzesinski <herton(a)redhat.com>
rpmspec: do not BuildRequires bpftool on noarch
Turns out we also need to keep bpftool BuildRequires out of noarch as
well, at least on a recent centos koji build I bumped into it:
BuildError: error building package (arch noarch), mock exited with status (...)
Executing command: ['/usr/bin/dnf', 'builddep', '--installroot',
(...)
(...)
DEBUG util.py:444: No matching package to install: 'bpftool'
(...)
DEBUG util.py:444: Not all dependencies satisfied
DEBUG util.py:444: Error: Some packages could not be found.
DEBUG util.py:598: Child return code was: 1
DEBUG util.py:169: kill orphans
noarch doesn't build any kernel of course so just keep it out too.
Signed-off-by: Herton R. Krzesinski <herton(a)redhat.com>
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index blahblah..blahblah 100755
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -556,7 +556,7 @@ BuildRequires: net-tools, hostname, bc, elfutils-devel
BuildRequires: dwarves
BuildRequires: python3-devel
BuildRequires: gcc-plugin-devel
-%ifnarch %{nobuildarches}
+%ifnarch %{nobuildarches} noarch
BuildRequires: bpftool
%endif
%if %{with_headers}
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1239