Openembedded Core Discussions
 help / color / mirror / Atom feed
* Could we build tar-replacement firstly and not parallel if tar-replacement is needed to build
@ 2012-08-06 12:50 Rongqing Li
  2012-08-07  5:59 ` Rongqing Li
  0 siblings, 1 reply; 8+ messages in thread
From: Rongqing Li @ 2012-08-06 12:50 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer, Yang, Liezhi,
	Hatle, Mark

Hi:

Building failed several times when building tar-replacement-native is 
needed,
The error log shows 
"bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/tar: Text
file busy". this log proves "an attempt was made to execute a 
pure-procedure
program that is currently open for writing."


Before this error, tar-replacement do_populate_sysroot just starts,
(tar-replacement-native-1.26-r2: task do_populate_sysroot: Started)
After this error, we see tar-replacement do_populate_sysroot just
finish.

So I think the root cause is that do_populate_sysroot sqlite is using
a tar command which being opened to written. in fact, all packages
need tar to do_popolate_sysroot()

I see building tar-replacement-native is started in bitbake file,
could we build tar-replacement firstly, not parallel if needed.



diff --git a/scripts/bitbake b/scripts/bitbake
index 3772d82..1bb8fed 100755
--- a/scripts/bitbake
+++ b/scripts/bitbake
@@ -134,7 +134,10 @@ if [ $buildpseudo -gt 0 ]; then
              fi
          done
      done
-    bitbake pseudo-native $TARTARGET $additionalopts -c populate_sysroot
+
+    if [ $needptar = "1" ]; then
+       sed -i 's/BB_NUMBER_THREADS =/#BB_NUMBER_THREADS =/g' 
conf/local.conf
+       bitbake $TARTARGET
+       sed -i 's/#BB_NUMBER_THREADS =/BB_NUMBER_THREADS =/g' 
conf/local.conf
+    fi
+
+    bitbake pseudo-native $additionalopts -c populate_sysroot
      ret=$?
      if [ "$ret" != "0" ]; then
          exit 1


since building tar-replacement or not depends on host tar version, it is
hard to add a tar dependence to any package, and I did not have a good way
to fix this bug except the upper.

Any advice and suggestion are welcome


-- 
Best Reagrds,
Roy | RongQing Li




^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-08-07  9:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-06 12:50 Could we build tar-replacement firstly and not parallel if tar-replacement is needed to build Rongqing Li
2012-08-07  5:59 ` Rongqing Li
2012-08-07  7:41   ` Richard Purdie
2012-08-07  8:02     ` Rongqing Li
2012-08-07  8:57       ` Pascal Ouyang
2012-08-07  9:27         ` Rongqing Li
2012-08-07  9:03       ` Richard Purdie
2012-08-07  9:25         ` Rongqing Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox