busybox: don't clobber dangling symlinks
authorBaruch Siach <baruch@tkos.co.il>
Tue, 17 Jul 2018 11:01:43 +0000 (14:01 +0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 21 Aug 2018 10:27:44 +0000 (12:27 +0200)
commitb1db9038ddaf89c4abf69e17993eb13646da7e8d
treec901250c98f9aee7387810ea637b67731b23c9e1
parent994a47649b4c95c2338d41d34144ebfb9639b717
busybox: don't clobber dangling symlinks

We sometimes create dangling symlinks in the target directory. That is
because we need canonical targets, as relative targets don't work well
with BR2_ROOTFS_MERGED_USR. For example, the vim package installs the
/bin/vi symlink to /usr/bin/vim. This symlink might be dangling when the
build host has no vim installed there.

Patch the busybox install.sh script to avoid clobber of dangling
symlinks.

Fixes:
http://autobuild.buildroot.net/results/796/796107430db6545401d9926e84f19eaf2040b756/

Cc: Adam Duskett <aduskett@gmail.com>
Cc: Carlos Santos <casantos@datacom.com.br>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/busybox/0003-install.sh-don-t-clobber-dangling-symlinks.patch [new file with mode: 0644]