[LTP] [RFC PATCH 1/1] lapi: Add sysinfo.h to fix build with MUSL libc

Petr Vorel petr.vorel@gmail.com
Tue Oct 27 20:18:23 CET 2020


Hi Cyril,

...
> I've added this patch already to buildroot, but if kernel patch get accepted,
> it'd be kept only temporarily (I think they don't have patches for musl based
> toolchains, otherwise they'd take Alpine's patch by now. But they instead drop
> support for these toolchains in packages which don't upstream the solution.

> > Apart from that it looks like the kernel patch has been ignored. I guess
> > that you should try to push it a bit more before we give up and apply
> > workarounds...
> Tried next version, let's see.
> https://lore.kernel.org/linux-api/20201015190013.8901-1-petr.vorel@gmail.com/

Patch has been included into next tree [1]. If not reverted, it would fix the
problem for newer kernel headers. Distros using MUSL (Buildroot and OpenEmbedded)
will have to keep this patch for older headers and update it as we might add
more <sys/sysinfo.h> in the future, but that's not that difficult.

Kind regards,
Petr

[1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?h=next-20201027&id=92a5a1734a34380444dd9cace835525c5f51a9ed


More information about the ltp mailing list