Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [git commit] busybox: only install S01logging if syslogd applet is enabled
Date: Wed, 23 Nov 2011 12:40:52 +0100	[thread overview]
Message-ID: <4ECCDBC4.8030805@free-electrons.com> (raw)
In-Reply-To: <20110704191002.1D1B48A31E@busybox.osuosl.org>

Hi Peter,

Looking at the init scripts installation stuff, I found this, which is
confusing to me.

There seems to be a glitch here.

AFAIK, when I proposed that name, we renamed all the init scripts for
logging daemons to S01logging.

But this combined with this commit leads to erasing the init scripts for
other daemons when logging is not enabled in busybox.

While it shouldn't happen in the common use-case, because of the
dependency we set on busybox in all the logger packages, if the user put
his init script for another logger in the skeleton, it will always
remove it, and install the default one.

Maybe the common name was not such a good idea, and that we should have
a distinct name for each init scripts. Or we revert this commit. I don't
know.

On 04/07/2011 21:03, Peter Korsgaard wrote:
> 
> commit: http://git.buildroot.net/buildroot/commit/?id=abf7af17e95855e9fe2535729f7d83fce603463f
> branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
> 
> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
> ---
>  package/busybox/busybox.mk |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk
> index 4931b07..509c3bb 100644
> --- a/package/busybox/busybox.mk
> +++ b/package/busybox/busybox.mk
> @@ -123,8 +123,10 @@ endef
>  endif
>  
>  define BUSYBOX_INSTALL_LOGGING_SCRIPT
> -	$(INSTALL) -m 0755 -D package/busybox/S01logging \
> -		$(TARGET_DIR)/etc/init.d/S01logging
> +	if grep -q CONFIG_SYSLOGD=y $(@D)/.config; then \
> +		$(INSTALL) -m 0755 -D package/busybox/S01logging \
> +			$(TARGET_DIR)/etc/init.d/S01logging; \
> +	else rm -f $(TARGET_DIR)/etc/init.d/S01logging; fi
>  endef
>  
>  # We do this here to avoid busting a modified .config in configure


-- 
Maxime Ripard, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2011-11-23 11:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-04 19:03 [Buildroot] [git commit] busybox: only install S01logging if syslogd applet is enabled Peter Korsgaard
2011-11-23 11:40 ` Maxime Ripard [this message]
2011-11-23 15:05   ` Peter Korsgaard
2011-11-23 21:41     ` Peter Korsgaard
2011-11-23 21:56       ` Maxime Ripard
2011-11-23 22:16         ` Peter Korsgaard
2011-11-24  8:03           ` Maxime Ripard

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=4ECCDBC4.8030805@free-electrons.com \
    --to=maxime.ripard@free-electrons.com \
    --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