From fdd3adfa883cd3b4934d54eda7fb8e2e36fae4a578befbc9d30349d201302198 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 1 Mar 2023 08:47:31 +0000 Subject: [PATCH] Accepting request 1068372 from home:marxin:branches:Base:System - Add -lzstd as libbfd is linked against the compression library. OBS-URL: https://build.opensuse.org/request/show/1068372 OBS-URL: https://build.opensuse.org/package/show/Base:System/bpftool?expand=0&rev=14 --- binutils-2.40.patch | 4 ++-- bpftool.changes | 5 +++++ bpftool.spec | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/binutils-2.40.patch b/binutils-2.40.patch index dc0ce8e..9fffdda 100644 --- a/binutils-2.40.patch +++ b/binutils-2.40.patch @@ -1,5 +1,5 @@ diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile -index f610e184ce02..afef9c65614e 100644 +index f610e184ce02..21cd7505e871 100644 --- a/tools/bpf/bpftool/Makefile +++ b/tools/bpf/bpftool/Makefile @@ -154,6 +154,8 @@ else @@ -7,7 +7,7 @@ index f610e184ce02..afef9c65614e 100644 ifeq ($(feature-libbfd),1) LIBS += -lbfd -ldl -lopcodes + else ifeq ($(feature-libbfd-liberty-sframe),1) -+ LIBS += -lbfd -ldl -lopcodes -liberty -lsframe ++ LIBS += -lbfd -ldl -lopcodes -liberty -lsframe -lzstd else ifeq ($(feature-libbfd-liberty),1) LIBS += -lbfd -ldl -lopcodes -liberty else ifeq ($(feature-libbfd-liberty-z),1) diff --git a/bpftool.changes b/bpftool.changes index 45b4327..8db0060 100644 --- a/bpftool.changes +++ b/bpftool.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 1 08:15:33 UTC 2023 - Martin Liška + +- Add -lzstd as libbfd is linked against the compression library. + ------------------------------------------------------------------- Wed Feb 22 08:21:22 UTC 2023 - Martin Liška diff --git a/bpftool.spec b/bpftool.spec index 3dde110..c79b274 100644 --- a/bpftool.spec +++ b/bpftool.spec @@ -29,6 +29,7 @@ BuildRequires: binutils-devel BuildRequires: docutils BuildRequires: kernel-source BuildRequires: libelf-devel +BuildRequires: libzstd-devel %description bpftool allows for inspection and simple modification of BPF objects (programs