Sync from SUSE:SLFO:Main bpftool revision 5a14ae23a8c49096f826886453dfe27c
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun May 25 04:18:20 UTC 2025 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
- Change .spec to not write files
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 25 10:01:22 UTC 2025 - Christophe Marin <christophe@krop.fr>
|
||||
|
||||
- Simplify the LLVM version conditions
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 30 15:56:21 UTC 2024 - Fredrik Lönnegren <fredrik.lonnegren@suse.com>
|
||||
|
||||
|
39
bpftool.spec
39
bpftool.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package bpftool
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,26 +16,21 @@
|
||||
#
|
||||
|
||||
|
||||
# Use default LLVM on openSUSE unless it is not yet supported
|
||||
%if 0%{?suse_version} >= 1600 || 0%{?is_opensuse}
|
||||
%if 0%{?product_libs_llvm_ver} > 17
|
||||
%define llvm_major_version 17
|
||||
%else
|
||||
%define llvm_major_version %{nil}
|
||||
%endif
|
||||
%else
|
||||
# Hard-code latest LLVM for SLES, the default version is too old
|
||||
%if 0%{?sle_version} == 150600
|
||||
%define llvm_major_version 17
|
||||
%else
|
||||
%if 0%{?sle_version} == 150500
|
||||
%define llvm_major_version 15
|
||||
%else
|
||||
%if 0%{?sle_version} == 150400
|
||||
%define llvm_major_version 11
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
# 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
|
||||
@@ -79,7 +74,7 @@ sed -i -e 's/CFLAGS += -O2/CFLAGS = $(RPM_OPT_FLAGS)/' src/Makefile
|
||||
%make_build -C src V=1 \
|
||||
feature-reallocarray=1 \
|
||||
feature-libbfd-liberty=1 \
|
||||
%if %(if gcc -lsframe -shared 2>/dev/null ; then echo 1 ; else echo 0; fi; )
|
||||
%if %(if gcc -lsframe -shared -o /dev/null 2>/dev/null ; then echo 1 ; else echo 0; fi; )
|
||||
feature-libbfd-liberty-sframe=1 \
|
||||
%endif
|
||||
feature-disassembler-four-args=1 \
|
||||
|
Reference in New Issue
Block a user