суббота

[Bug 2007308] Re: linux-tools-common: bpftool wrapper causes build failure for xdp-tools

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 subscribed to linux
in Ubuntu.
Matching subscriptions: Bgg, Bmail, Nb
https://bugs.launchpad.net/bugs/2007308

Title:
linux-tools-common: bpftool wrapper causes build failure for xdp-tools

Status in launchpad-buildd:
New
Status in linux package in Ubuntu:
Confirmed
Status in xdp-tools package in Ubuntu:
Fix Released

Bug description:
The linux-tools-common package appears to provide a shell script with
a wrapper that will execute the actual bpftool binary located in a
location like /usr/lib/linux-tools/6.1.0-14-generic/bpftool

This causes problems for Lunar builds of xdp-tools on Launchpad [0]
because there we appear to be running the build in a lunar container
on host with a 5.4.0 kernel.

Even if we were to install the linux-tools-6.1.0-14 package directly
to get the real bpftool binary, the provided wrapper would be
unhelpful.

0: https://launchpad.net/ubuntu/+source/xdp-tools/1.3.0-2

For completeness/process I collected artifacts below from a Lunar LXD container running on a Focal host with a 5.4.0 kernel.
---
ProblemType: Bug
AlsaDevices: Error: command ['ls', '-l', '/dev/snd/'] failed with exit code 2: ls: cannot access '/dev/snd/': No such file or directory
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.24.0-0ubuntu2
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
CRDA: N/A
CasperMD5CheckResult: unknown
DistroRelease: Ubuntu 23.04
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Lsusb-t:
 /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 5000M
 /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 480M
MachineType: QEMU Standard PC (Q35 + ICH9, 2009)
Package: linux-tools-common 6.1.0-14.14
PackageArchitecture: all
PciMultimedia:

ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=C.UTF-8
ProcFB: 0 virtio_gpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-139-generic root=UUID=d7e84875-6ab0-4d9a-bd8c-8e452fa45621 ro console=tty1 console=ttyS0
ProcVersionSignature: Ubuntu 5.4.0-139.156-generic 5.4.224
RelatedPackageVersions:
 linux-restricted-modules-5.4.0-139-generic N/A
 linux-backports-modules-5.4.0-139-generic N/A
 linux-firmware N/A
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
Tags: lunar uec-images package-from-proposed
Uname: Linux 5.4.0-139-generic x86_64
UpgradeStatus: Upgraded to lunar on 2023-02-14 (0 days ago)
UserGroups: N/A
WifiSyslog: Feb 14 19:24:18 kind-flea udevadm[83]: kernel: Failed to write 'add' to '/sys/module/kernel/uevent': Permission denied
_MarkForUpload: True
acpidump:

dmi.bios.date: 02/06/2015
dmi.bios.vendor: EFI Development Kit II / OVMF
dmi.bios.version: 0.0.0
dmi.board.name: LXD
dmi.board.vendor: Canonical Ltd.
dmi.board.version: pc-q35-7.1
dmi.chassis.type: 1
dmi.chassis.vendor: QEMU
dmi.chassis.version: pc-q35-7.1
dmi.modalias: dmi:bvnEFIDevelopmentKitII/OVMF:bvr0.0.0:bd02/06/2015:svnQEMU:pnStandardPC(Q35+ICH9,2009):pvrpc-q35-7.1:rvnCanonicalLtd.:rnLXD:rvrpc-q35-7.1:cvnQEMU:ct1:cvrpc-q35-7.1:
dmi.product.name: Standard PC (Q35 + ICH9, 2009)
dmi.product.version: pc-q35-7.1
dmi.sys.vendor: QEMU

To manage notifications about this bug go to:
https://bugs.launchpad.net/launchpad-buildd/+bug/2007308/+subscriptions

Комментариев нет:

Отправить комментарий