Bug#948041: impossible to update libbpf without updating the kernel

2020-01-27 Thread Julia Kartseva
On Sun, 19 Jan 2020 22:32:22 -0800 Andrii Nakryiko
 wrote:
> Libbpf releases are only loosely synchronized with kernel releases,
> and it's only due to current convention we established within
> community. There is nothing preventing multiple releases of libbpf
> between two releases of kernel. So having Linux distributions use
> Github's release tags ensures that all of them are building from
> exactly the same source code version.
> 
> > "No ties to any specific kernel, transparent handling of older kernels."
> >
> > What?  Either they are upstream for it or patch the source.  But this
> > point means it can't be a direct mirror.  So what is it?
> 
> It is mostly a direct mirror, with some extra Github-specific stuff
> beside (like Travis CI testing, etc). All the libbpf source code fixes
> do go through bpf-next tree, though.
> 
> But the point here was that libbpf itself is not built with any
> particular kernel version in mind. It is by design possible to use the
> very latest libbpf against a pretty old kernel version and this will
> work: libbpf will degrade some of the features (e.g, BTF type info
> associations), but everything will keep working otherwise (unless user
> requests feature that requires latest kernel version, of course: in
> that case BPF program will fail to load and libbpf will return
> corresponding error code).

+1

Having libbpf packaged from GH would spare Linux user space developers from
headache of supporting different versioning across distributions, e.g. in
Fedora and Debian.
Libbpf releases are independent from kernel releases and mapping from
kernel to libbpf versions will confuse and complicate developers.
Libbpf from GH should be a common denominator across distributions, so
Debian doesn't create a corner case.


Bug#948041: impossible to update libbpf without updating the kernel

2020-01-14 Thread Julia Kartseva
On Sun, 12 Jan 2020 09:51:55 +0100 Bastian Blank  wrote:

> But updating independently does not provide any benefit.  As the kernel
> repo is still upstream, all upstream chnages will flow into the Debian
> archive.  An extra package will always lag behind, as changes needs to
> flow from kernel to external repo.
> 
> > It might be better if we decide now what we want to do and tell them
> > accordingly.
> 
> Why should we?  If the upstream developers decide to maintain it
> independently, aka don't use the kernel repo as true source, or better,
> remove the source from it, then we have something to do.
> 
> Bastian

Hi Bastian,

Why should we switch from kernel sources to GH is a frequently asked
question so the reason was explained in libbpf README [1].

There is another bug report on libbpf packaging filed earlier by me [2],
feel merge it with this one.

[1] https://github.com/libbpf/libbpf#distributions
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=942903


Bug#942903: libbpf library is from kernel source

2019-10-22 Thread Julia Kartseva
Package: libbpf-dev
Version: 5.3.7-1
Severity: wishlist

Hi,

libbpf-dev is currently packaged from kernel sources.
Please consider switching to GH mirror [1] so there are following advantages:
- Versioning is consistent with ABI
- GH mirror has CI tests
- Be consistent w/ other distros, e.g. Fedora which has already switched
to GH mirror in [2]
The whole rationale is in [3]

Thanks!

[1] https://github.com/libbpf/libbpf
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1745478
[3] https://lore.kernel.org/netdev/3fbec3f8-5c3c-40f9-af6e-c355d8f62...@fb.com/