From: Herton R. Krzesinski herton@redhat.com
rpmspec: do not BuildRequires bpftool on nobuildarches
Kernel builds are failing on i686 due missing or not available bpftool. It does not make sense to require it on arches that we only build headers and don't need bpftool, so make it not required on this case.
Signed-off-by: Herton R. Krzesinski herton@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 @@ -545,7 +545,9 @@ BuildRequires: net-tools, hostname, bc, elfutils-devel BuildRequires: dwarves BuildRequires: python3-devel BuildRequires: gcc-plugin-devel +%ifnarch %{nobuildarches} BuildRequires: bpftool +%endif %if %{with_headers} BuildRequires: rsync %endif
-- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1197
From: Justin M. Forbes on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1197#note_6146678...
Acked-by: Justin M. Forbes jforbes@fedoraproject.org (via approve button)
From: Don Zickus on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1197#note_6146798...
Acked-by: Don Zickus dzickus@redhat.com (via approve button)
From: Don Zickus on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1197#note_6146800...
Gah! How did we miss that? Sorry for that @hertonrk-rh
kernel@lists.fedoraproject.org