From 577dd4b3e5d4861c31824d920fa170ba3a585f63 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 21 Feb 2011 16:29:43 +0000 Subject: tar-replacement-native: Add a target to replace the default tar tar < 1.24 has symlink issues where extracting a tar archive containing a symlink to a directory where that symlink already exists will cause the symlink to be dereferenced. If that target doesn't exist tar can fail with a permissions error. Since we need to be able to do this for packages containing symlinks like xorg-minimal-fonts and eglibc, we have to ensure a tar 1.25 is available early in the build process. Signed-off-by: Richard Purdie --- scripts/bitbake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/bitbake') diff --git a/scripts/bitbake b/scripts/bitbake index f40bd28260..cad4dbe1b4 100755 --- a/scripts/bitbake +++ b/scripts/bitbake @@ -15,7 +15,7 @@ done buildpseudo="1" if [ $needpseudo = "1" ] && [ -e "$BUILDDIR/pseudodone" ]; then PSEUDOBINDIR=`cat $BUILDDIR/pseudodone` - if [ -e "$PSEUDOBINDIR/pseudo" ]; then + if [ -e "$PSEUDOBINDIR/pseudo" -a -e "$PSEUDOBINDIR/tar" ]; then buildpseudo="0" fi fi @@ -27,7 +27,7 @@ OLDPATH=$PATH export PATH=`echo $PATH | sed s#[^:]*/scripts:##` if [ $buildpseudo = "1" ]; then echo "Pseudo is not present but is required, building this first before the main build" - bitbake pseudo-native -c populate_sysroot + bitbake pseudo-native tar-replacement-native -c populate_sysroot ret=$? if [ "$ret" != "0" ]; then exit 1 -- cgit v1.2.3-54-g00ecf