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

Bug #2007308 reported by Frode Nordahl
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
launchpad-buildd
New
Undecided
Unassigned
linux (Ubuntu)
Confirmed
Undecided
Unassigned
xdp-tools (Ubuntu)
Fix Released
Undecided
Unassigned

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

Revision history for this message
Frode Nordahl (fnordahl) wrote : AudioDevicesInUse.txt

apport information

tags: added: apport-collected lunar package-from-proposed uec-images
description: updated
Revision history for this message
Frode Nordahl (fnordahl) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Frode Nordahl (fnordahl) wrote : Dependencies.txt

apport information

Revision history for this message
Frode Nordahl (fnordahl) wrote : Lspci.txt

apport information

Revision history for this message
Frode Nordahl (fnordahl) wrote : Lspci-vt.txt

apport information

Revision history for this message
Frode Nordahl (fnordahl) wrote : Lsusb-v.txt

apport information

Revision history for this message
Frode Nordahl (fnordahl) wrote : NonfreeKernelModules.txt

apport information

Revision history for this message
Frode Nordahl (fnordahl) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Frode Nordahl (fnordahl) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Frode Nordahl (fnordahl) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Frode Nordahl (fnordahl) wrote : ProcModules.txt

apport information

Revision history for this message
Frode Nordahl (fnordahl) wrote : UdevDb.txt

apport information

description: updated
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Colin Watson (cjwatson) wrote :

We plan to switch the buildd host system from Ubuntu 20.04 to 22.04 fairly soon, which would result in using a 5.15 kernel instead of 5.4. Would that be enough to fix this problem?

affects: launchpad → launchpad-buildd
Revision history for this message
Frode Nordahl (fnordahl) wrote :

@cjwatson thanks alot for chiming in on the issue. I added Launchpad, because I was unsure what part Launchpad has in the massaging of dependencies on the Debian import, and if something could be done there. Unfortunately even if the host had a 5.15 kernel, there is no 5.15 package in Lunar.

The linux-tools-common package is currently pulled in on the back of it claiming to provide `bpftool` through a Provides stanza, however it is just a shell wrapper.

I guess if we somehow could get the builder to understand that it would also need linux-tools-generic we could possibly convince Debian to accept some conditional logic in d/rules to find the bpftool binary in /usr/lib/linux-tools-*

Revision history for this message
Frode Nordahl (fnordahl) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "xdp-tools_1.3.0-2ubuntu1.patch" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xdp-tools - 1.3.0-2ubuntu2

---------------
xdp-tools (1.3.0-2ubuntu2) lunar; urgency=medium

  * d/p/lp-2008214-ppc64le-build-failure.patch: Resolve FTBFS for ppc64le on
    Ubuntu (LP: #2008214).

 -- Frode Nordahl <email address hidden> Thu, 23 Feb 2023 14:02:56 +0100

Changed in xdp-tools (Ubuntu):
status: New → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

Unsubscribing sponsors there doesn't seem to be something left to review there

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.