bpfcc-tools autotest failure when multiple linux-tools-<version> packages are installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bpfcc (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Noble |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
The autopkgtest for bpfcc-tools fails with the following error when multiple linux-tools packages (multiple kernels) are installed:
942s /usr/lib/
942s Usage: bpftool [OPTIONS] OBJECT { COMMAND | help }
942s bpftool batch file FILE
942s bpftool version
942s
942s OBJECT := { prog | map | link | cgroup | perf | net | feature | btf | gen | struct_ops | iter }
942s OPTIONS := { {-j|--json} [{-p|--pretty}] | {-d|--debug} |
942s {-V|--version} }
942s make[2]: *** [Makefile:192: /tmp/autopkgtes
942s make[2]: *** Deleting file '/tmp/autopkgte
942s make[2]: Leaving directory '/tmp/autopkgte
942s make[1]: *** [debian/rules:44: override_
942s make[1]: Leaving directory '/tmp/autopkgte
The reason is that in debian/rules we evaluate BPFTOOL assuming that only one kernel is installed, but we may have multiple kernels (therefore multiple linux-tools-
[Test case]
Install multiple linux-tools-
[Fix]
Evaluate BPFTOOL in debian/rules only taking the last bpftool listed in /usr/lib/
[Regression potential]
This change affects only the autopkgtest and it allows to run the test correctly also when multiple kernels are installed, no regresssion is expected.
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: bpfcc-tools 0.29.1+ds-1ubuntu6
ProcVersionSign
Uname: Linux 6.8.0-22-generic x86_64
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckR
CloudArchitecture: x86_64
CloudBuildName: server
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSerial: 20240413
CloudSubPlatform: config-disk (/dev/vdb)
Date: Tue Apr 16 05:38:06 2024
PackageArchitec
ProcEnviron:
LANG=C.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
XDG_RUNTIME_
SourcePackage: bpfcc
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | added: patch |
Changed in bpfcc (Ubuntu Noble): | |
status: | New → Fix Committed |
debdiff in attach allows to run the autopkgtest correctly also with multiple kernels installed.