Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package bpftool for openSUSE:Factory checked 
in at 2026-02-02 14:55:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/bpftool (Old)
 and      /work/SRC/openSUSE:Factory/.bpftool.new.1995 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "bpftool"

Mon Feb  2 14:55:14 2026 rev:17 rq:1330339 version:7.6.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/bpftool/bpftool.changes  2025-07-30 
11:45:43.311579451 +0200
+++ /work/SRC/openSUSE:Factory/.bpftool.new.1995/bpftool.changes        
2026-02-02 14:55:47.384028253 +0100
@@ -1,0 +2,9 @@
+Fri Jan 30 08:07:39 UTC 2026 - Shung-Hsi Yu <[email protected]>
+
+- Simplify LLVM-version detection to use product_libs_llvm_ver
+  * Macro available in SLES as well since 15-SP7
+- Make bpftool-bash-completion noarch
+- Export CFLAGS to properly propagate optflags to sub-make
+  * Ensure bundled libbpf builds with system flags
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ bpftool.spec ++++++
--- /var/tmp/diff_new_pack.lL6FmZ/_old  2026-02-02 14:55:52.136229119 +0100
+++ /var/tmp/diff_new_pack.lL6FmZ/_new  2026-02-02 14:55:52.136229119 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package bpftool
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,23 +16,6 @@
 #
 
 
-# Use latest version by default on Tumbleweed (as of 2025-02-25: llvm 19)
-%define llvm_major_version %{nil}
-
-# Default versions are too old on Leap 15 and SLES 15, overwrite 
llvm_major_version
-%if 0%{?suse_version} == 1500
-%define llvm_major_version 17
-%endif
-%if 0%{?sle_version} == 150600
-%define llvm_major_version 17
-%endif
-%if 0%{?sle_version} == 150500
-%define llvm_major_version 15
-%endif
-%if 0%{?sle_version} == 150400
-%define llvm_major_version 11
-%endif
-
 Name:           bpftool
 Version:        7.6.0
 Release:        0
@@ -44,13 +27,13 @@
 Patch0:         binutils-2.40.patch
 BuildRequires:  binutils-devel
 # Needed for compiling included BPF program (i.e. skeletons)
-BuildRequires:  clang%{llvm_major_version}
+BuildRequires:  clang%{product_libs_llvm_ver}
 BuildRequires:  docutils
 BuildRequires:  libcap-devel
 BuildRequires:  libelf-devel
 BuildRequires:  libzstd-devel
 # llvm-strip is needed for the included BPF program (i.e. skeletons)
-BuildRequires:  llvm%{llvm_major_version}
+BuildRequires:  llvm%{product_libs_llvm_ver}
 
 %description
 bpftool allows for inspection and simple modification of BPF objects (programs
@@ -59,6 +42,7 @@
 %package bash-completion
 Summary:        Bash completion for bpftool
 Group:          System/Shells
+BuildArch:      noarch
 Requires:       %{name}
 Requires:       bash-completion
 Supplements:    (%{name} and bash-completion)
@@ -68,9 +52,9 @@
 
 %prep
 %autosetup -p1 -n bpftool-libbpf-v%{version}-sources
-sed -i -e 's/CFLAGS += -O2/CFLAGS = $(RPM_OPT_FLAGS)/' src/Makefile
 
 %build
+export CFLAGS="%{optflags}"
 %make_build -C src V=1 \
     feature-reallocarray=1 \
     feature-libbfd-liberty=1 \

Reply via email to