From: Gregory Bell grbell@redhat.com
redhat/spec: package full bpftool in selftests JIRA: https://issues.redhat.com/browse/RHEL-91378 Upstream Status: RHEL-only
test_bpftool.sh selftests fails because selftests is packaged with bootstrap bpftool. Replace bootstrap bpftool with full bpftool in selftests package
Signed-off-by: Gregory Bell grbell@redhat.com
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template index blahblah..blahblah 100644 --- a/redhat/kernel.spec.template +++ b/redhat/kernel.spec.template @@ -3251,6 +3251,11 @@ for dir in bpf bpf/no_alu32 bpf/progs; do done %buildroot_save_unstripped "usr/libexec/kselftests/bpf/test_progs" %buildroot_save_unstripped "usr/libexec/kselftests/bpf/test_progs-no_alu32" + +# Copy bpftool to kselftests so selftests is packaged with +# the full bpftool instead of bootstrap bpftool +cp ./bpf/tools/sbin/bpftool %{buildroot}%{_libexecdir}/kselftests/bpf/bpftool + popd %{log_msg "end build selftests"} %endif
-- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/3948
kernel@lists.fedoraproject.org