summaryrefslogtreecommitdiff
path: root/meta/recipes-core/busybox/busybox-1.20.2/stat-usr-bin.patch
diff options
context:
space:
mode:
authorAndy Ross <andy.ross@windriver.com>2012-09-18 14:38:44 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-27 09:46:37 +0100
commitef7e1239b95dbef4e461007d6d0612c27a7919ec (patch)
treef654bb544612ccff980cdd8e10d39307511874ef /meta/recipes-core/busybox/busybox-1.20.2/stat-usr-bin.patch
parent6745b927a40e523cfda4ce2ca6422d69a6791e8a (diff)
downloadopenembedded-core-ef7e1239b95dbef4e461007d6d0612c27a7919ec.tar.gz
openembedded-core-ef7e1239b95dbef4e461007d6d0612c27a7919ec.tar.bz2
openembedded-core-ef7e1239b95dbef4e461007d6d0612c27a7919ec.zip
busybox: add /usr/bin/stat applet
The busybox defconfig lacks a stat tool, the functionality of which cannot be reproduced in a way accessible to a shell script running in a minimal configuration. Enable, and modify the installation path to /usr/bin/stat to match the coreutils tool for proper alternatives handling. Signed-off-by: Andy Ross <andy.ross@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/busybox/busybox-1.20.2/stat-usr-bin.patch')
-rw-r--r--meta/recipes-core/busybox/busybox-1.20.2/stat-usr-bin.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-core/busybox/busybox-1.20.2/stat-usr-bin.patch b/meta/recipes-core/busybox/busybox-1.20.2/stat-usr-bin.patch
new file mode 100644
index 0000000000..4049324e8b
--- /dev/null
+++ b/meta/recipes-core/busybox/busybox-1.20.2/stat-usr-bin.patch
@@ -0,0 +1,21 @@
+busybox: move /bin/stat to /usr/bin/stat to match coreutils
+
+The coreutils stat binary lives in /usr/bin, fix busybox to use the same path so
+they can be properly tracked by alternatives.
+
+Upstream-Status: Inappropriate [embedded]
+Signed-off-by: Andy Ross <andy.ross@windriver.com>
+
+diff --git a/include/applets.src.h b/include/applets.src.h
+index 0d33bfc..30ae3ad 100644
+--- a/include/applets.src.h
++++ b/include/applets.src.h
+@@ -340,7 +340,7 @@ IF_SOFTLIMIT(APPLET_ODDNAME(softlimit, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, soft
+ IF_SORT(APPLET_NOEXEC(sort, sort, BB_DIR_USR_BIN, BB_SUID_DROP, sort))
+ IF_SPLIT(APPLET(split, BB_DIR_USR_BIN, BB_SUID_DROP))
+ IF_START_STOP_DAEMON(APPLET_ODDNAME(start-stop-daemon, start_stop_daemon, BB_DIR_SBIN, BB_SUID_DROP, start_stop_daemon))
+-IF_STAT(APPLET(stat, BB_DIR_BIN, BB_SUID_DROP))
++IF_STAT(APPLET(stat, BB_DIR_USR_BIN, BB_SUID_DROP))
+ IF_STRINGS(APPLET(strings, BB_DIR_USR_BIN, BB_SUID_DROP))
+ IF_STTY(APPLET(stty, BB_DIR_BIN, BB_SUID_DROP))
+ /* Needs to be run by root or be suid root - needs to change uid and gid: */