From 2f10c1f20d09cb2c31f1221da546af152e283735 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 10:29:25 +0200 Subject: Building with bpftool backport to fix FTBFS. Signed-off-by: Daniel Baumann --- debian/control | 2 +- debian/rules | 16 ++-------------- 2 files changed, 3 insertions(+), 15 deletions(-) (limited to 'debian') diff --git a/debian/control b/debian/control index 2e1b97d..c9dd267 100644 --- a/debian/control +++ b/debian/control @@ -6,7 +6,7 @@ XSBC-Uploaders: Daniel Baumann XSBC-Original-Maintainer: Luca Boccassi Bugs: mailto:maintainers@lists.progress-linux.org Rules-Requires-Root: no -Build-Depends: bpftool, +Build-Depends: bpftool (>= 7.1), clang, debhelper-compat (= 13), libbpf-dev, diff --git a/debian/rules b/debian/rules index 7497f1d..ceabf38 100755 --- a/debian/rules +++ b/debian/rules @@ -12,6 +12,8 @@ ifneq (,$(filter $(DEB_HOST_MULTIARCH), mips64el-linux-gnuabi64 mipsel-linux-gnu export BPF_CFLAGS+= -D__MIPSEL__=1 endif +export BPFTOOL=/usr/sbin/bpftool + ifneq (,$(findstring terse,$(DEB_BUILD_OPTIONS))) export VERBOSE=0 else @@ -23,17 +25,3 @@ endif # Tests require root and break the testbed override_dh_auto_test: - -execute_before_dh_auto_build: - # On Ubuntu, the `bpftool` in path is a shell wrapper pointing at - # the binary corresponding to runtime kernel version. - # - # We do not know the kernel version being used on the system building - # this package, and for the build we only need the tool to generate - # skeleton code. - # - # If /usr/lib/linux-tools-*/bpftool exists, locate the most recent - # version and point to that, otherwise `bpftool` from PATH will be - # used. - for _bpftool in $(ls /usr/lib/linux-tools-*/bpftool); do true;done - if [ -x "$_bpftool" ]; then export BPFTOOL=$_bpftool; fi -- cgit v1.2.3