The package rpms/kernel-tools.git has added or updated architecture specific content in
its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/kernel-tools.git/commit/?id=5e167....
Change:
+%ifnarch i686 armv7hl
Thanks.
Full change:
============
commit 5e167d36143efc226f00afd88319daa42b7acb1b
Author: Justin M. Forbes <jforbes(a)fedoraproject.org>
Date: Tue Jul 20 09:29:57 2021 -0500
Fix up build for 32bit arch
Signed-off-by: Justin M. Forbes <jforbes(a)fedoraproject.org>
diff --git a/kernel-tools.spec b/kernel-tools.spec
index 4a0922a..f93b4de 100644
--- a/kernel-tools.spec
+++ b/kernel-tools.spec
@@ -76,7 +76,9 @@ BuildRequires: opencsd-devel openssl-devel libbabeltrace-devel
libtraceevent-dev
BuildRequires: libbpf-devel
BuildRequires: clang llvm
# bpftool will look for a matching vmlinux.h here
+%ifnarch i686 armvv7hl
BuildRequires: kernel-devel
+%endif
# Used to mangle unversioned shebangs to be Python 3
BuildRequires: /usr/bin/pathfix.py
%ifnarch s390x %{arm}
@@ -276,11 +278,13 @@ popd
# This is a bit messy, but if we have a kernel-devel installed from this version, and it
includes a vmlinux.h
# we want to use that. Otherwise, we need to pass an empty so it will generate one from
the running kernel.
+%ifnarch i686 armv7hl
develpackage=$(rpm -qa | grep "kernel-devel" | grep %{kversion})
vmlinux_h=$(rpm -ql $develpackage | grep vmlinux.h)
if [ -f $vmlinux_h ]; then
RPM_VMLINUX_H=$vmlinux_h
fi
+%endif
%global bpftool_make \
make EXTRA_CFLAGS="${RPM_OPT_FLAGS}"
EXTRA_LDFLAGS="%{__global_ldflags}" DESTDIR=$RPM_BUILD_ROOT
VMLINUX_H="${RPM_VMLINUX_H}" V=1