APPLIED: [EOAN][UNSTABLE][PATCH v2 0/1] add bpftool to linux-tools-common
quentin.monnet at netronome.com
Thu Sep 5 21:04:30 UTC 2019
2019-09-05 15:25 UTC-0500 ~ Seth Forshee <seth.forshee at canonical.com>
> On Fri, Aug 30, 2019 at 06:43:52PM +0100, Quentin Monnet wrote:
>> BugLink: https://bugs.launchpad.net/bugs/1774815
>> bpftool is a debugging and introspection tool for BPF elements, developed by
>> the BPF kernel community. It is essential to list and dump BPF programs and
>> maps loaded on the system. Its sources are located in the kernel repository,
>> and because it is not packaged, administrators willing to use bpftool must
>> download the whole kernel sources, compile and install the utility.
>> Adding bpftool to linux-tools and linux-tools-common packages makes it easily
>> accessible. These packages are already used to provide other tools located in
>> the kernel repository, such as perf.
>> A test linux package was successfully built, at:
>> (Built with:
>> Packages linux-tools-$(uname -r) and linux-tools-common can be built with
>> "debian/rules binary", and contain bpftool's binary and related files
>> (redirection script, bpftool manual pages, bash completion), respectively.
>> [Regression Potential]
>> Low, as far as I can tell: bpftool packaging does not change the way
>> other tools are packaged (apart from creating $(toolsman)/man8 a few
>> lines earlier), and should have no impact on the packaging of other
>> tools. One dependency is added to Build-Depends-Indep, none is removed.
>> This set was originally submitted for bionic , but rebased for the
>> development branch on Kleber's advice . The version for bionic
>> included a backported patch from linux 4.16 for fixing bpftool build
>> following a change in bfd.h from binutils-dev (commit fb982666e380
>> ("tools/bpftool: fix bpftool build with bintutils >= 2.9")), but this
>> commit is already present in kernel 5.2.
>>  https://lists.ubuntu.com/archives/kernel-team/2019-July/102462.html
>>  https://lists.ubuntu.com/archives/kernel-team/2019-August/103095.html
>> Changes in v2:
>> - Switch from python-docutils to python3-docutils for the dependency
>> providing rst2man for manual pages.
>> - Set CROSS_COMPILE when building bpftool.
> Applied to eoan/master-next and unstable/master, thanks!
Thank you so much!
If we want to have bpftool packaged on bionic too, should I resubmit the
set for bionic (as in ) as a SRU request? Or is there a different
process that I missed?
More information about the kernel-team