package/musl-compat-headers: provide compatibility headers not in musl
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 18 Aug 2016 21:50:13 +0000 (23:50 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 19 Aug 2016 09:29:12 +0000 (11:29 +0200)
commite31eb720408bb0826ec5a27e804dbe6afaf30390
tree87506d5dc33987534053c715fce90c0a7f73169c
parentf55adea434876cf1ee2604abe367ed1b6c555faf
package/musl-compat-headers: provide compatibility headers not in musl

musl provides neither sys/queue.h nor sys/cdefs.h. Those two headers are
however quite widely used in a lot of packages (though they should at
least not use cdefs.h which is only full of mostly-legacy macros, and
which is mostly an internal header of glibc and was never really meant to
be exposed to, and used by packages).

But we don't live in an ideal world, so a lot of packages break when
those two headers are missing.

We already took care of sys/queue.h with the netbsd-queue package. But
the need for cdefs.h is getting more and more pressing.

We rename the netbsd-queue package into musl-compat-headers, and we
make it install sys/queue.h (from NetBSD) and sys/cdefs.h (a minimalist
one we bundle in Buildroot). We can't use the cdefs.h from NetBSD
because it includes machine-dependent headers; instead we bundle a very
minimalistic one, that covers only what we need.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Baruch Siach <baruch@tkos.co.il>
Cc: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12 files changed:
package/Config.in
package/musl-compat-headers/Config.in [new file with mode: 0644]
package/musl-compat-headers/cdefs.h [new file with mode: 0644]
package/musl-compat-headers/musl-compat-headers.hash [new file with mode: 0644]
package/musl-compat-headers/musl-compat-headers.mk [new file with mode: 0644]
package/musl/Config.in
package/musl/musl.mk
package/netbsd-queue/Config.in [deleted file]
package/netbsd-queue/netbsd-queue.hash [deleted file]
package/netbsd-queue/netbsd-queue.mk [deleted file]
toolchain/toolchain-external/Config.in
toolchain/toolchain-external/toolchain-external.mk