Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package bcc for openSUSE:Factory checked in at 2025-09-30 17:42:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/bcc (Old) and /work/SRC/openSUSE:Factory/.bcc.new.11973 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "bcc" Tue Sep 30 17:42:43 2025 rev:73 rq:1308121 version:0.35.0 Changes: -------- --- /work/SRC/openSUSE:Factory/bcc/bcc.changes 2025-08-27 21:36:21.970908149 +0200 +++ /work/SRC/openSUSE:Factory/.bcc.new.11973/bcc.changes 2025-09-30 17:44:35.034814587 +0200 @@ -1,0 +2,7 @@ +Wed Sep 24 01:59:23 UTC 2025 - Hoyeon Lee <[email protected]> + +- Add libbpf-tools subpackage + - tools are prefixed with 'bpf-' (iovisor/bcc#3263) + - disabled for unsupported AArch32/IA-32 variant + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ bcc.spec ++++++ --- /var/tmp/diff_new_pack.ddR2rm/_old 2025-09-30 17:44:35.862849533 +0200 +++ /var/tmp/diff_new_pack.ddR2rm/_new 2025-09-30 17:44:35.866849702 +0200 @@ -52,6 +52,12 @@ %endif %endif +%ifarch %arm %ix86 +%{!?with_libbpf_tools: %global with_libbpf_tools 0} +%else +%{!?with_libbpf_tools: %global with_libbpf_tools 1} +%endif + Name: bcc Version: 0.35.0 Release: 0 @@ -160,6 +166,16 @@ %description docs Documentation on how to write programs with the BPF Compiler Collection. +%if %{with_libbpf_tools} +%package -n libbpf-tools +Summary: Tracing libbpf tools from the BPF Compiler Collection +BuildRequires: bpftool +BuildRequires: libbpf-devel-static + +%description -n libbpf-tools +libbpf-driven eBPF tracing tools from the BPF Compiler Collection +%endif + %prep %autosetup -p1 @@ -211,6 +227,14 @@ find tools/ examples/ -type f -exec \ sed -i '1s|/bin/python$|/bin/python3|g' {} + +%if %{with_libbpf_tools} +pushd libbpf-tools +%make_build LIBBPF_OBJ=%{_libdir}/libbpf.a \ + BPFTOOL=%{_sbindir}/bpftool \ + CFLAGS="%{optflags}" +popd +%endif + %install pushd build %make_install @@ -222,6 +246,24 @@ popd +%if %{with_libbpf_tools} +pushd libbpf-tools +# package libbpf-tools with 'bpf-' prefix (iovisor/bcc#3263) +%make_install bindir=%{_sbindir} +( + cd %{buildroot}/%{_sbindir} + for file in *; do + mv $file bpf-$file + done + # some are symlinks, update them too + for file in `find . -type l`; do + dest=$(readlink "$file") + ln -s -f bpf-$dest $file + done +) +popd +%endif + # Remove the static libraries rm -f %{buildroot}/%{_libdir}/libbcc*.a @@ -269,3 +311,8 @@ %doc docs/kernel-versions.md docs/reference_guide.md %doc docs/tutorial_bcc_python_developer.md docs/tutorial.md +%if %{with_libbpf_tools} +%files -n libbpf-tools +%{_sbindir}/bpf-* +%endif +
