[Buildroot] [PATCH v2 1/1] package/strace: use bundled headers

James Hilliard james.hilliard1 at gmail.com
Thu Jul 13 21:33:50 UTC 2023


On Thu, Jul 13, 2023 at 2:11 PM Thomas Petazzoni
<thomas.petazzoni at bootlin.com> wrote:
>
> On Thu, 13 Jul 2023 01:57:40 -0600
> James Hilliard <james.hilliard1 at gmail.com> wrote:
>
> > There is a bug in the configure script, while we could apply the
> > upstream patching fixing this bug the better solution is to switch
> > to using the bundled headers instead.
> >
> > The reason for this is that strace needs the headers of the running
> > kernel rather than those that were used to build the toolchain.
> >
> > The running kernel is often more recent than the one used in the
> > toolchain so we do want to use the more up-to-date headers.
> >
> > As such we should use the strace bundled headers as they will be
> > the most up-to-date headers.
>
> But then isn't there a chance that the bundled headers are too *recent*
> compared to the running kernel? What happens in this case?

I presume since strace is tracing syscalls made by other applications that
it shouldn't cause issues as it would be the traced application choosing
the syscalls to make.

>
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering and training
> https://bootlin.com



More information about the buildroot mailing list