[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: