Right now we need to have this ugly workaround in debian/rules whenever we need to use bpftool at build time, which is becoming more and more important as we need to build CO-RE binaries, for example in src:systemd:
ifeq ($(DEB_VENDOR),Ubuntu) bpftool_binary := $(shell find /usr/lib/linux-tools/ -name 'bpftool' -perm /u=x 2>/dev/null | sort | head -n1) ifneq ($(bpftool_binary),) export PATH := $(shell dirname $(bpftool_binary)):$(PATH) endif endif Can we please get an unversioned bpftool package that ships a /usr/sbin/bpftool executable that is usable and doesn't look at the _running_ kernel to choose what to run? That way we can just build- depend on 'bpftool' and run 'bpftool' and be done with it. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2007308 Title: linux-tools-common: bpftool wrapper causes build failure for xdp-tools To manage notifications about this bug go to: https://bugs.launchpad.net/launchpad-buildd/+bug/2007308/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs