Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #59217 > unrolled thread

Re: libbpfcc needs a way to ensure the current kernel's headers are installed

Started byBen Hutchings <ben@decadent.org.uk>
First post2017-10-18 14:10 +0200
Last post2017-10-18 15:30 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.debian.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: libbpfcc needs a way to ensure the current kernel's headers are  installed Ben Hutchings <ben@decadent.org.uk> - 2017-10-18 14:10 +0200
    Bug#877925: libbpfcc needs a way to ensure the current kernel's headers are installed Alexander Kurtz <alexander@kurtz.be> - 2017-10-18 14:30 +0200
      Bug#877925: libbpfcc needs a way to ensure the current kernel's headers are installed Ben Hutchings <ben@decadent.org.uk> - 2017-10-18 15:30 +0200

#59217 — Re: libbpfcc needs a way to ensure the current kernel's headers are installed

FromBen Hutchings <ben@decadent.org.uk>
Date2017-10-18 14:10 +0200
SubjectRe: libbpfcc needs a way to ensure the current kernel's headers are installed
Message-ID<uBVkB-RV-1@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

On Tue, 2017-10-17 at 21:37 +0200, Alexander Kurtz wrote:
> Hi!
> 
> (Applications linked against) libbpfcc will dynamically compile and
> load C source code into eBPF byte code at runtime and load the result
> into the kernel for various purposes (e.g. socket filtering, tracing,
> etc.).
> 
> For this to work, it needs the kernel headers of the *currently running
> kernel* [0,1]. Therefore, the maintainer of libbpfcc in Debian added a
> corresponding dependency [2] which unfortunately breaks everything but
> amd64 [3] and does also not quite fix the original bug [4].
> 
> Please comment on bug #877925 [4] and/or #878922 [3] regarding on how
> to solve the "this package needs the current kernel's headers
> installed" problem!

You cannot use package dependencies to do this.  It has to be a run-
time check.

Ben.

-- 
Ben Hutchings
Anthony's Law of Force: Don't force it, get a larger hammer.

[toc] | [next] | [standalone]


#59218 — Bug#877925: libbpfcc needs a way to ensure the current kernel's headers are installed

FromAlexander Kurtz <alexander@kurtz.be>
Date2017-10-18 14:30 +0200
SubjectBug#877925: libbpfcc needs a way to ensure the current kernel's headers are installed
Message-ID<uBVDX-Yi-3@gated-at.bofh.it>
In reply to#59217

[Multipart message — attachments visible in raw view] — view raw

On Wed, 2017-10-18 at 13:02 +0100, Ben Hutchings wrote:
> > Please comment on bug #877925 [4] and/or #878922 [3] regarding on how
> > to solve the "this package needs the current kernel's headers
> > installed" problem!
> 
> You cannot use package dependencies to do this.  It has to be a run-
> time check.

Ok, that's what I figured. Is there at least a solution to the "if the
user has the standard, most recent, Debian kernel running, make sure
the corresponding headers are installed" problem? I.e. something like
Ubuntu's "linux-{image,headers}-generic" packages?

Best regards

Alexander Kurtz

[toc] | [prev] | [next] | [standalone]


#59220 — Bug#877925: libbpfcc needs a way to ensure the current kernel's headers are installed

FromBen Hutchings <ben@decadent.org.uk>
Date2017-10-18 15:30 +0200
SubjectBug#877925: libbpfcc needs a way to ensure the current kernel's headers are installed
Message-ID<uBWA1-1E6-1@gated-at.bofh.it>
In reply to#59218

[Multipart message — attachments visible in raw view] — view raw

On Wed, 2017-10-18 at 14:21 +0200, Alexander Kurtz wrote:
> On Wed, 2017-10-18 at 13:02 +0100, Ben Hutchings wrote:
> > > Please comment on bug #877925 [4] and/or #878922 [3] regarding on how
> > > to solve the "this package needs the current kernel's headers
> > > installed" problem!
> > 
> > You cannot use package dependencies to do this.  It has to be a run-
> > time check.
> 
> Ok, that's what I figured. Is there at least a solution to the "if the
> user has the standard, most recent, Debian kernel running, make sure
> the corresponding headers are installed" problem? I.e. something like
> Ubuntu's "linux-{image,headers}-generic" packages?

No, there is no common metapackage name that is available on all Debian
architectures.  (I don't think those metapackages are available on all
Ubuntu architectures either.)

Ben.

-- 
Ben Hutchings
Anthony's Law of Force: Don't force it, get a larger hammer.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web