forked from pool/bpftool
Accepting request 1065908 from home:marxin:branches:Base:System
- Add binutils-2.40.patch where we need to explicitly link against -lsframe. It's a workaround for an existing issue: https://github.com/libbpf/bpftool/issues/73. OBS-URL: https://build.opensuse.org/request/show/1065908 OBS-URL: https://build.opensuse.org/package/show/Base:System/bpftool?expand=0&rev=10
This commit is contained in:
parent
7b9668dc0d
commit
bcdb9be188
13
binutils-2.40.patch
Normal file
13
binutils-2.40.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile
|
||||
index 4a95c017ad4c..9a4851df3276 100644
|
||||
--- a/tools/bpf/bpftool/Makefile
|
||||
+++ b/tools/bpf/bpftool/Makefile
|
||||
@@ -139,6 +139,8 @@ SRCS = $(filter-out $(BFD_SRCS),$(wildcard *.c))
|
||||
|
||||
ifeq ($(feature-libbfd),1)
|
||||
LIBS += -lbfd -ldl -lopcodes
|
||||
+else ifeq ($(feature-libbfd-liberty-sframe),1)
|
||||
+ LIBS += -lbfd -ldl -lopcodes -liberty -lsframe
|
||||
else ifeq ($(feature-libbfd-liberty),1)
|
||||
LIBS += -lbfd -ldl -lopcodes -liberty
|
||||
else ifeq ($(feature-libbfd-liberty-z),1)
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 15 09:11:12 UTC 2023 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Add binutils-2.40.patch where we need to explicitly link against
|
||||
-lsframe. It's a workaround for an existing issue:
|
||||
https://github.com/libbpf/bpftool/issues/73.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 7 16:22:21 UTC 2022 - Callum Farmer <gmbr3@opensuse.org>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package bpftool
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -20,6 +20,7 @@
|
||||
Name: bpftool
|
||||
Version: %{version}
|
||||
Release: 0
|
||||
Patch0: binutils-2.40.patch
|
||||
Summary: Tool for inspection and manipulation of BPF programs and maps
|
||||
License: GPL-2.0-only
|
||||
Group: Development/Tools/Other
|
||||
@ -36,8 +37,8 @@ and maps) on the system.
|
||||
%package bash-completion
|
||||
Summary: Bash completion for bpftool
|
||||
Group: System/Shells
|
||||
Requires: bash-completion
|
||||
Requires: %{name}
|
||||
Requires: bash-completion
|
||||
Supplements: (%{name} and bash-completion)
|
||||
|
||||
%description bash-completion
|
||||
@ -58,12 +59,16 @@ There is no reason to install this package.
|
||||
(cd %{_prefix}/src/linux ; tar -cf - COPYING CREDITS README tools include scripts Kbuild Makefile arch/*/{include,lib,Makefile} kernel/bpf lib) | tar -xf -
|
||||
cp %{_prefix}/src/linux/LICENSES/preferred/GPL-2.0 .
|
||||
sed -i -e 's/CFLAGS += -O2/CFLAGS = $(RPM_OPT_FLAGS)/' Makefile
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
cd tools/bpf/bpftool
|
||||
%make_build \
|
||||
feature-reallocarray=1 \
|
||||
feature-libbfd-liberty=1 \
|
||||
%if %(if gcc -lsframe -shared 2>/dev/null ; then echo 1 ; else echo 0; fi; )
|
||||
feature-libbfd-liberty-sframe=1 \
|
||||
%endif
|
||||
feature-disassembler-four-args=1 \
|
||||
all \
|
||||
doc
|
||||
|
Loading…
Reference in New Issue
Block a user