]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
busybox: enable noclobber option in install.sh
authorDanomi Manchego <danomimanchego123@gmail.com>
Wed, 4 Jun 2014 01:53:24 +0000 (21:53 -0400)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 4 Jun 2014 21:21:23 +0000 (23:21 +0200)
commit802bff9c42376078f28aa49d3eab630120940eb0
treeef8ed4d2ff507b32ff869534f62362589a5a97da
parent74bc709e636c2383194d39ef4f1679f76deae372
busybox: enable noclobber option in install.sh

We support a busybox-menuconfig target so that the BusyBox
configuration can be adjusted as needed.  However, depending
on what other packages are enabled, re-installing BusyBox
symlinks that duplicate "real" apps after the configuration
change can result in bad behaviors:

* At best, the BusyBox applet will be used after the
install, versus the desired "real" app.

* At worst, the built rootfs can become unbootable.

The BusyBox install.sh has some capability to avoid this issue
by means of a --noclobber option.  By default, this option is
disabled.  When enabled, the install.sh will not overwrite a
target file with a symlink or hardlink, be it an actual file
or a previously installed BusyBox link.

The install.sh's argument processing is somewhat broken, so this
patch simply changes the default value of the noclobber option
to on, rather than add --noclobber to the install.sh invocation.

Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/busybox/busybox.mk