Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/4] system: do not overwrite /bin/sh Busybox symlink
Date: Wed, 29 Mar 2017 23:29:05 +0200	[thread overview]
Message-ID: <20170329232905.46689199@free-electrons.com> (raw)
In-Reply-To: <1490564623-26806-2-git-send-email-thomas.petazzoni@free-electrons.com>

Hello,

On Sun, 26 Mar 2017 23:43:40 +0200, Thomas Petazzoni wrote:
> The BR2_SYSTEM_BIN_SH hidden option defines to what binary the /bin/sh
> symlinks should point to. If busybox is chosen, then /bin/sh is created
> to point to /bin/busybox.
> 
> This works fine with the default installation mode of Busybox, but it
> fails with the upcoming "individual binaries" mode, in which each applet
> is installed as its own binary, and /bin/busybox doesn't exist: we get
> /bin/sh as a broken symlink to /bin/busybox.
> 
> Since Busybox already installs its own /bin/sh symlink, properly
> pointing to /bin/ash or /bin/hush depending on the selected shell, it
> doesn't make sense for the BR2_SYSTEM_BIN_SH logic to override
> this. Just let Busybox install its own /bin/sh by making
> BR2_SYSTEM_BIN_SH empty when Busybox shell is selected as /bin/sh.
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> This is proposed as an alternative to
> https://patchwork.ozlabs.org/patch/686673/. If people believe
> https://patchwork.ozlabs.org/patch/686673/ is a better solution, I'm
> fine as well.
> ---
>  package/skeleton/skeleton.mk | 2 ++
>  system/Config.in             | 1 -
>  2 files changed, 2 insertions(+), 1 deletion(-)

Applied to master, thanks.

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

  parent reply	other threads:[~2017-03-29 21:29 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-26 21:43 [Buildroot] [PATCH 0/4] Allow Busybox installation as individual binaries Thomas Petazzoni
2017-03-26 21:43 ` [Buildroot] [PATCH 1/4] system: do not overwrite /bin/sh Busybox symlink Thomas Petazzoni
2017-03-27 16:43   ` Matthew Weber
2017-03-28 21:30   ` Arnout Vandecappelle
2017-03-29 21:29   ` Thomas Petazzoni [this message]
2017-03-26 21:43 ` [Buildroot] [PATCH 2/4] core: allow packages to declare a permission file Thomas Petazzoni
2017-03-27 16:44   ` Matthew Weber
2017-03-28 22:12   ` Arnout Vandecappelle
2017-03-29  6:43     ` Arnout Vandecappelle
2017-07-03 16:03       ` Arnout Vandecappelle
2017-07-03 16:11         ` Arnout Vandecappelle
2017-03-26 21:43 ` [Buildroot] [PATCH 3/4] docs/manual: document FOO_PERMISSIONS_FILE Thomas Petazzoni
2017-03-27 16:44   ` Matthew Weber
2017-03-26 21:43 ` [Buildroot] [PATCH 4/4] busybox: applets as individual binaries Thomas Petazzoni
2017-03-27 16:39   ` Matthew Weber

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=20170329232905.46689199@free-electrons.com \
    --to=thomas.petazzoni@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