From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] musl: add a sys/queue.h implementation
Date: Tue, 1 Dec 2015 06:38:06 +0200 [thread overview]
Message-ID: <20151201043806.GA2193@tarshish> (raw)
In-Reply-To: <1448924535-8093-1-git-send-email-sergio.prado@e-labworks.com>
Hi Sergio,
On Mon, Nov 30, 2015 at 09:02:15PM -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 sys-queue that will install 'sys/queue.h'
> in the staging directory when enabled.
>
> 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@e-labworks.com>
Thanks for working on this.
> +define SYS_QUEUE_INSTALL_STAGING_CMDS
> + if [ ! -f $(STAGING_DIR)/usr/include/sys/queue.h ]; then \
We generally don't check for existence of files in target/staging, just
overwrite them. Is there a reason to do this here? As I understand sys-queue
is now a dependency of the toolchain, so if the toolchain provides sys/queue.h
it will overwrite this one anyway.
> + $(INSTALL) -D -m 0644 package/sys-queue/queue.h \
> + $(STAGING_DIR)/usr/include/sys/queue.h; \
> + fi
> +endef
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
next prev parent reply other threads:[~2015-12-01 4:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-30 23:02 [Buildroot] [PATCH] musl: add a sys/queue.h implementation Sergio Prado
2015-12-01 4:38 ` Baruch Siach [this message]
2015-12-01 10:17 ` Sergio Prado
2015-12-01 10:29 ` Thomas Petazzoni
2015-12-01 10:44 ` Sergio Prado
2015-12-01 11:00 ` Thomas Petazzoni
2015-12-01 21:14 ` Sergio Prado
2015-12-01 20:17 ` Jörg Krause
2015-12-01 20:34 ` Arnout Vandecappelle
2015-12-01 21:15 ` Sergio Prado
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151201043806.GA2193@tarshish \
--to=baruch@tkos.co.il \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.