[Buildroot] [PATCH v2] musl: add a sys/queue.h implementation

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Dec 17 21:05:14 UTC 2015


Dear Sergio Prado,

On Tue,  1 Dec 2015 22:58:28 -0200, Sergio Prado wrote:
> Musl does not provide a 'sys/queue.h' implementation, and this has been
> a problem for packages that depend on it.
> 
> So lets create a package called netbsd-queue that will install a
> 'sys/queue.h' in the staging directory when enabled, based on the
> NetBSD implementation.
> 
> Musl toolchain and external toolchain packages will depend on this
> package, so that 'sys/queue.h' will be always installed when compiling
> with a musl based toolchain.
> 
> Tested on ARM and x86 in the following cases:
>   - Buildroot musl toolchain.
>   - External musl toolchain without 'sys/queue.h'.
>   - External musl toolchain with 'sys/queue.h'.
> 
> Fixes:
> http://autobuild.buildroot.net/results/24bad2d06ab40024dacf136bee722072d587f84e
> 
> And possibly many others.
> 
> Signed-off-by: Sergio Prado <sergio.prado at e-labworks.com>
> 
> ---
> Changes v1 -> v2:
>   - package name changed to netbsd-queue
>   - queue.h is now downloaded from NetBSD CVS server
>   - Config.in removed
>   - license changed to BSD-3c
>   - instead of checking if queue.h already exists before installing, 
>     it will be installed unconditionally.
> ---
>  package/musl/musl.mk                               |  5 +++++
>  package/netbsd-queue/netbsd-queue.hash             |  2 ++
>  package/netbsd-queue/netbsd-queue.mk               | 23 ++++++++++++++++++++++
>  toolchain/toolchain-external/toolchain-external.mk |  7 +++++++
>  4 files changed, 37 insertions(+)
>  create mode 100644 package/netbsd-queue/netbsd-queue.hash
>  create mode 100644 package/netbsd-queue/netbsd-queue.mk

Applied, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list