[SRU][N][PATCH 1/1] UBUNTU: [Packaging] Install bpf header to correct location

Juerg Haefliger juerg.haefliger at canonical.com
Tue Jul 29 06:17:00 UTC 2025


BugLink: https://bugs.launchpad.net/bugs/2118965

Debian installs it at /usr/include/$DEB_HOST_MULTIARCH/linux/bpf/vmlinux.h
We should do the same.

Fixes: 76f5a303807e ("UBUNTU: [Packaging] add linux-bpf-dev package")
Signed-off-by: Juerg Haefliger <juerg.haefliger at canonical.com>
---
 debian/rules.d/2-binary-arch.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index ef07269722ed..a20eb8442e02 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -746,8 +746,8 @@ ifeq ($(do_tools_bpftool),true)
 	install -m755 $(builddirpa)/tools/bpf/bpftool/bpftool $(toolspkgdir)/usr/lib/$(src_pkg_name)-tools-$(abi_release)
 endif
 ifeq ($(do_tools_bpftool),true)
-	install -d -m755 $(CURDIR)/debian/linux-bpf-dev/usr/include/$(DEB_HOST_MULTIARCH)/linux/
-	install -m644 $(builddirpa)/vmlinux.h $(CURDIR)/debian/linux-bpf-dev/usr/include/$(DEB_HOST_MULTIARCH)/linux/vmlinux.h
+	install -d -m755 $(CURDIR)/debian/linux-bpf-dev/usr/include/$(DEB_HOST_MULTIARCH)/linux/bpf/
+	install -m644 $(builddirpa)/vmlinux.h $(CURDIR)/debian/linux-bpf-dev/usr/include/$(DEB_HOST_MULTIARCH)/linux/bpf/vmlinux.h
 endif
 ifeq ($(do_tools_x86),true)
 	install -m755 \
-- 
2.48.1




More information about the kernel-team mailing list