[Bug 2061727] Re: bpfcc-tools autotest failure when multiple linux-tools-<version> packages are installed
Launchpad Bug Tracker
2061727 at bugs.launchpad.net
Fri Apr 19 14:49:22 UTC 2024
This bug was fixed in the package bpfcc - 0.29.1+ds-1ubuntu7
---------------
bpfcc (0.29.1+ds-1ubuntu7) noble; urgency=medium
* d/rules:
- allow to run autopkgtest with multiple kernels installed (LP: #2061727)
-- Andrea Righi <andrea.righi at canonical.com> Tue, 16 Apr 2024 05:52:23
+0000
** Changed in: bpfcc (Ubuntu Noble)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bpfcc in Ubuntu.
https://bugs.launchpad.net/bugs/2061727
Title:
bpfcc-tools autotest failure when multiple linux-tools-<version>
packages are installed
Status in bpfcc package in Ubuntu:
Fix Released
Status in bpfcc source package in Noble:
Fix Released
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/linux-tools-6.8.0-22/bpftool /usr/lib/linux-tools-6.8.0-25/bpftool gen skeleton /tmp/autopkgtest.2W4dxr/build.Uhs/src/libbpf-tools/.output/bashreadline.bpf.o > /tmp/autopkgtest.2W4dxr/build.Uhs/src/libbpf-tools/.output/bashreadline.skel.h
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/autopkgtest.2W4dxr/build.Uhs/src/libbpf-tools/.output/bashreadline.skel.h] Error 255
942s make[2]: *** Deleting file '/tmp/autopkgtest.2W4dxr/build.Uhs/src/libbpf-tools/.output/bashreadline.skel.h'
942s make[2]: Leaving directory '/tmp/autopkgtest.2W4dxr/build.Uhs/src/libbpf-tools'
942s make[1]: *** [debian/rules:44: override_dh_auto_install] Error 2
942s make[1]: Leaving directory '/tmp/autopkgtest.2W4dxr/build.Uhs/src'
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-<version>) installed.
[Test case]
Install multiple linux-tools-<version> and run the bpfcc-tools
autopkgtest.
[Fix]
Evaluate BPFTOOL in debian/rules only taking the last bpftool listed
in /usr/lib/linux-tools-*/bpftool.
[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
ProcVersionSignature: User Name 6.8.0-22.22-generic 6.8.1
Uname: Linux 6.8.0-22-generic x86_64
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckResult: unknown
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
PackageArchitecture: all
ProcEnviron:
LANG=C.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
SourcePackage: bpfcc
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bpfcc/+bug/2061727/+subscriptions
More information about the foundations-bugs
mailing list