[Lunar-commits] <moonbase> coreutils: removed ugly hacks forcing to out of standards legacy /bin. Compat symlinks added to /bin for out of specs apps
Zbigniew Luszpinski
zbiggy at lunar-linux.org
Sun Apr 29 15:59:14 CEST 2012
commit f1bf4c8810ae137161d3e0e84980f917af2aca47
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date: Sun Apr 29 15:59:14 2012 +0200
coreutils: removed ugly hacks forcing to out of standards legacy /bin. Compat symlinks added to /bin for out of specs apps
---
utils/coreutils/BUILD | 25 ++++---------------------
1 file changed, 4 insertions(+), 21 deletions(-)
diff --git a/utils/coreutils/BUILD b/utils/coreutils/BUILD
index 4463e89..c615e93 100644
--- a/utils/coreutils/BUILD
+++ b/utils/coreutils/BUILD
@@ -18,35 +18,18 @@
# This option resolves conflicts with shadow/heimdal, net-tools and procps
OPTS+=" --enable-no-install-program=arch,hostname,su,groups,kill,uptime" &&
- # tchan added this hack for coreutils > 6.x
- export CHGRPPROG=/bin/chgrp &&
- export CHMODPROG=/bin/chmod &&
- export CPPROG=/bin/cp &&
- export MKDIRPROG=/bin/mkdir &&
- export MVPROG=/bin/mv &&
- export RMPROG=/bin/rm &&
DEFAULT_POSIX2_VERSION=199209 default_build &&
(
for FILE in basename cat cp chgrp chmod chown cut date dd df echo false \
- head id ln ls mkdir mknod nice pwd rm rmdir sleep sort \
+ head id ln ls mkdir mknod mv nice pwd rm rmdir sleep sort \
stty sync tail tr true uname ; do
if [ -f /usr/bin/$FILE ] ; then
- /bin/mv -f /usr/bin/$FILE /bin
+ /usr/bin/ln -sf /usr/bin/$FILE /bin/
fi
done &&
- # mv cannot be mv'ed:
- if [ -f /usr/bin/mv ] ; then
- cp /usr/bin/mv /bin/mv &&
- rm /usr/bin/mv
- fi &&
# also, bash will need to rehash, but doesn't:
- /bin/mv -f /usr/bin/chroot /usr/sbin
- ) &&
-
- # Some apps use fixed paths to /usr/bin so we add a symlink to make
- # them happy. For example see config.log of any compiled app to see that
- # autoconf looks for this coreutils app only inside /usr/bin
- ln -sf /bin/uname /usr/bin/uname
+ /usr/bin/mv -f /usr/bin/chroot /usr/sbin/
+ )
) > $C_FIFO 2>&1
More information about the Lunar-commits
mailing list