From: Sagaert Johan <sagaert.johan@skynet.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package: udev is now provided bysystemd or eudev.
Date: Wed, 18 Sep 2013 20:05:29 +0200 [thread overview]
Message-ID: <F5FDAC8BFE2A485C97C01535BDAA2ECA@JohanW7> (raw)
In-Reply-To: <60DD971516BF4BC19E62266390C4237A@JohanW7>
Hi
I have a patch here to remove the inline execvpe function,
I did not dive deep into it but I suppose this inline was needed for older versions of uClibc.
My build with uClibc 0.9.33.2 finished without the inline execvpe.
How can a patch be applied if, and only if uClibc 0.9.33.2 is selected ?
In other words is there some infrastructure in buildroot to apply patches based on a specified condition ?
Johan
diff --git a/src/macro.h b/src/macro.h
index e1ddff3..d88b802 100644
--- a/src/macro.h
+++ b/src/macro.h
@@ -36,12 +36,6 @@
#define _GNU_SOURCE
#endif
#include <unistd.h>
-static inline int execvpe(const char *file, char *const argv[],
- char *const envp[])
-{
- environ = (char **)envp;
- return execvp(file, argv);
-}
#endif
#define _printf_attr_(a,b) __attribute__ ((format (printf, a, b)))
#define _sentinel_ __attribute__ ((sentinel))
--
-----Oorspronkelijk bericht-----
Van: buildroot-bounces at busybox.net [mailto:buildroot-bounces at busybox.net] Namens Sagaert Johan
Verzonden: woensdag 18 september 2013 19:34
Aan: 'Thomas Petazzoni'
CC: buildroot at busybox.net
Onderwerp: Re: [Buildroot] [PATCH 1/1] package: udev is now provided bysystemd or eudev.
Hi
Just out of curiosity I tried to build using systemd :
I think it will need a patch :
src/macro.h:39:19: error: static declaration of 'execvpe' follows non-static declaration
>>> systemd 44 Building
PATH="/home/buildroot12git/output/host/bin:/home/buildroot12git/output/host/usr/bin:/home/buildroot12git/output/host/usr/sbin/:/usr/
local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/buildroot12git/output/host/usr/bin"
PERLLIB="/home/buildroot12git/output/host/usr/lib/perl" /usr/bin/make -j5 LIBS=-lrt LDFLAGS+=-ldl -C
/home/buildroot12git/output/build/systemd-44/
make[1]: Entering directory `/home/buildroot12git/output/build/systemd-44'
/usr/bin/make all-recursive
make[2]: Entering directory `/home/buildroot12git/output/build/systemd-44'
Making all in po
make[3]: Entering directory `/home/buildroot12git/output/build/systemd-44/po'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/buildroot12git/output/build/systemd-44/po'
make[3]: Entering directory `/home/buildroot12git/output/build/systemd-44'
CC src/libsystemd_login_la-cgroup-util.lo
CC src/libsystemd_core_la-unit.lo
CC src/libsystemd_core_la-job.lo
CC src/libsystemd_core_la-manager.lo
CC src/libsystemd_core_la-path-lookup.lo
In file included from src/util.h:38:0,
from src/def.h:25,
from src/cgroup-util.h:30,
from src/cgroup-util.c:32:
src/macro.h:39:19: error: static declaration of 'execvpe' follows non-static declaration
/home/buildroot12git/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/unistd.h:553:12: note: previous
declaration of 'execvpe' was here
make[3]: *** [src/libsystemd_login_la-cgroup-util.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
Regards, Johan
-----Oorspronkelijk bericht-----
Van: buildroot-bounces at busybox.net [mailto:buildroot-bounces at busybox.net] Namens Thomas Petazzoni
Verzonden: woensdag 18 september 2013 18:41
Aan: Arnout Vandecappelle
CC: buildroot at busybox.net
Onderwerp: Re: [Buildroot] [PATCH 1/1] package: udev is now provided by systemd or eudev.
Dear Arnout Vandecappelle,
On Wed, 18 Sep 2013 18:06:13 +0200, Arnout Vandecappelle wrote:
> > I already suggested that the selection of eudev vs. systemd should
> > not be in Target Packages, and Eric already made a proposal to solve
> > this. In fact, we don't need any new configuration option:
> > when the systemd init system is selected, then systemd is used.
> > When another init systemd is used, but the selected /dev management
> > method is udev, then we use eudev.
> >
> > There's no need for more options. The only thing that Eric proposed
> > is to re-order the Init System selection vs. the /dev management
> > selection to make things a bit more logical.
>
> For systemd, journal compression and journal gateway still have to
> be selectable. IMHO it is not nice for the user to have to navigate to
> a completely unrelated place in order to enable those. So my
> suggestion is to include the Config.in that has these extra options
> immediately below the systemd selection in the system menu.
Hum, right. Probably makes sense, yes.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux development, consulting, training and support.
http://free-electrons.com
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
next prev parent reply other threads:[~2013-09-18 18:05 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-06 14:01 [Buildroot] [PATCH 1/1] package: udev is now provided by systemd or eudev eric.le.bihan.dev at free.fr
2013-09-06 14:08 ` Eric Le Bihan
2013-09-10 20:24 ` Arnout Vandecappelle
2013-09-17 10:40 ` Eric Le Bihan
2013-09-18 4:45 ` Thomas Petazzoni
2013-09-18 6:52 ` Arnout Vandecappelle
2013-09-17 18:37 ` Thomas Petazzoni
2013-09-18 6:57 ` Arnout Vandecappelle
2013-09-18 15:56 ` Thomas Petazzoni
2013-09-18 16:04 ` Arnout Vandecappelle
2013-09-18 16:40 ` Thomas Petazzoni
2013-09-18 21:46 ` Arnout Vandecappelle
2013-09-17 5:17 ` Thomas Petazzoni
2013-09-17 12:53 ` Eric Le Bihan
2013-09-17 18:45 ` Thomas Petazzoni
2013-09-18 7:00 ` Arnout Vandecappelle
2013-09-18 15:58 ` Thomas Petazzoni
2013-09-18 16:06 ` Arnout Vandecappelle
2013-09-18 16:41 ` Thomas Petazzoni
2013-09-18 17:34 ` Sagaert Johan
2013-09-18 17:39 ` Thomas Petazzoni
2013-09-18 18:13 ` Sagaert Johan
2013-09-18 18:05 ` Sagaert Johan [this message]
2013-09-18 18:16 ` [Buildroot] [PATCH 1/1] package: udev is now provided bysystemd " Thomas Petazzoni
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=F5FDAC8BFE2A485C97C01535BDAA2ECA@JohanW7 \
--to=sagaert.johan@skynet.be \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox