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>
|
Fri Oct 7 16:22:21 UTC 2022 - Callum Farmer <gmbr3@opensuse.org>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package bpftool
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -20,6 +20,7 @@
|
|||||||
Name: bpftool
|
Name: bpftool
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: 0
|
Release: 0
|
||||||
|
Patch0: binutils-2.40.patch
|
||||||
Summary: Tool for inspection and manipulation of BPF programs and maps
|
Summary: Tool for inspection and manipulation of BPF programs and maps
|
||||||
License: GPL-2.0-only
|
License: GPL-2.0-only
|
||||||
Group: Development/Tools/Other
|
Group: Development/Tools/Other
|
||||||
@ -36,8 +37,8 @@ and maps) on the system.
|
|||||||
%package bash-completion
|
%package bash-completion
|
||||||
Summary: Bash completion for bpftool
|
Summary: Bash completion for bpftool
|
||||||
Group: System/Shells
|
Group: System/Shells
|
||||||
Requires: bash-completion
|
|
||||||
Requires: %{name}
|
Requires: %{name}
|
||||||
|
Requires: bash-completion
|
||||||
Supplements: (%{name} and bash-completion)
|
Supplements: (%{name} and bash-completion)
|
||||||
|
|
||||||
%description 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 -
|
(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 .
|
cp %{_prefix}/src/linux/LICENSES/preferred/GPL-2.0 .
|
||||||
sed -i -e 's/CFLAGS += -O2/CFLAGS = $(RPM_OPT_FLAGS)/' Makefile
|
sed -i -e 's/CFLAGS += -O2/CFLAGS = $(RPM_OPT_FLAGS)/' Makefile
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd tools/bpf/bpftool
|
cd tools/bpf/bpftool
|
||||||
%make_build \
|
%make_build \
|
||||||
feature-reallocarray=1 \
|
feature-reallocarray=1 \
|
||||||
feature-libbfd-liberty=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 \
|
feature-disassembler-four-args=1 \
|
||||||
all \
|
all \
|
||||||
doc
|
doc
|
||||||
|
Loading…
Reference in New Issue
Block a user