[oe-commits] Roy.Li : bitbake: compile tar-replacement firstly

git at git.openembedded.org git at git.openembedded.org
Wed Aug 29 15:05:39 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 3c1c4719fc96f6f1fbb257413d6baf3d91fdf4e8
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=3c1c4719fc96f6f1fbb257413d6baf3d91fdf4e8

Author: Roy.Li <rongqing.li at windriver.com>
Date:   Wed Aug  8 09:44:26 2012 +0800

bitbake: compile tar-replacement firstly

Compiling tar-replacement or not is decided by version of host tar,
if the host tar version is lower than 1.23, Compiling tar-replacement
is needed.

When doing popoluate tar-replacement sysroot to write the tar to
sysroot, but writing is not finished. other packages probably
use the being written tar to unzip file, which will lead to failure
and report the below error:
"bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/tar: Text file busy"

Now we compile tar-replacement firstly to ensure that a being written
tar command will not be used.

Signed-off-by: Roy.Li <rongqing.li at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 scripts/bitbake |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/scripts/bitbake b/scripts/bitbake
index 09f8a86..79a81ea 100755
--- a/scripts/bitbake
+++ b/scripts/bitbake
@@ -152,7 +152,12 @@ if [ $buildpseudo -gt 0 ]; then
             fi
         done
     done
-    bitbake pseudo-native $TARTARGET $GITTARGET $additionalopts -c populate_sysroot
+
+    if [ $needtar = "1" ]; then
+	bitbake $TARTARGET -c populate_sysroot
+    fi
+
+    bitbake pseudo-native $GITTARGET $additionalopts -c populate_sysroot
     ret=$?
     if [ "$ret" != "0" ]; then
         exit 1





More information about the Openembedded-commits mailing list