diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-21 16:29:43 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-21 16:36:51 +0000 |
commit | 577dd4b3e5d4861c31824d920fa170ba3a585f63 (patch) | |
tree | 72de94197186ea29203557bc1705c51f5d9948cf /scripts/bitbake | |
parent | 05c4692320901eb5c600f04d346cbc743380bfbc (diff) | |
download | poky-577dd4b3e5d4861c31824d920fa170ba3a585f63.tar.gz |
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/bitbake')
-rwxr-xr-x | scripts/bitbake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/bitbake b/scripts/bitbake index f40bd28260..cad4dbe1b4 100755 --- a/scripts/bitbake +++ b/scripts/bitbake | |||
@@ -15,7 +15,7 @@ done | |||
15 | buildpseudo="1" | 15 | buildpseudo="1" |
16 | if [ $needpseudo = "1" ] && [ -e "$BUILDDIR/pseudodone" ]; then | 16 | if [ $needpseudo = "1" ] && [ -e "$BUILDDIR/pseudodone" ]; then |
17 | PSEUDOBINDIR=`cat $BUILDDIR/pseudodone` | 17 | PSEUDOBINDIR=`cat $BUILDDIR/pseudodone` |
18 | if [ -e "$PSEUDOBINDIR/pseudo" ]; then | 18 | if [ -e "$PSEUDOBINDIR/pseudo" -a -e "$PSEUDOBINDIR/tar" ]; then |
19 | buildpseudo="0" | 19 | buildpseudo="0" |
20 | fi | 20 | fi |
21 | fi | 21 | fi |
@@ -27,7 +27,7 @@ OLDPATH=$PATH | |||
27 | export PATH=`echo $PATH | sed s#[^:]*/scripts:##` | 27 | export PATH=`echo $PATH | sed s#[^:]*/scripts:##` |
28 | if [ $buildpseudo = "1" ]; then | 28 | if [ $buildpseudo = "1" ]; then |
29 | echo "Pseudo is not present but is required, building this first before the main build" | 29 | echo "Pseudo is not present but is required, building this first before the main build" |
30 | bitbake pseudo-native -c populate_sysroot | 30 | bitbake pseudo-native tar-replacement-native -c populate_sysroot |
31 | ret=$? | 31 | ret=$? |
32 | if [ "$ret" != "0" ]; then | 32 | if [ "$ret" != "0" ]; then |
33 | exit 1 | 33 | exit 1 |