coreutils: fix chroot installation
authorBaruch Siach <baruch@tkos.co.il>
Wed, 11 Jul 2018 19:51:18 +0000 (22:51 +0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 16 Jul 2018 14:41:20 +0000 (16:41 +0200)
commitc5dec11d71ac7436892749b40394daead5752524
treef01f2e4400e926ea02c9176ae77523f62b82d36e
parent0fbc50d46a52555b7fc199ba319d011c0c7fd1c8
coreutils: fix chroot installation

Since commit 256bb383fb7 (coreutils: use single binary in symlink
method) the chroot move command creates a dangling symlink, because the
symlink target is 'coreutils' which is not in the /usr/sbin/ directory.
Instead of moving, remove the coreutils installed symlink, and create a
new one in $(TARGET_DIR)/usr/sbin with the correct target.

Should also fix (busybox):
http://autobuild.buildroot.net/results/6b3/6b39648b466738162516aa50ab328d839ec85448/

Cc: Carlos Santos <casantos@datacom.ind.br>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/coreutils/coreutils.mk