[oe-commits] Richard Purdie : sstate: Avoid contention between sstate packages
git version control
git at git.openembedded.org
Wed Sep 7 22:43:05 UTC 2011
Module: openembedded-core.git
Branch: master
Commit: c08d7093bf654ffedb155c5627972e9ecfeb0b60
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=c08d7093bf654ffedb155c5627972e9ecfeb0b60
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Wed Sep 7 18:34:47 2011 +0100
sstate: Avoid contention between sstate packages
If several sstate packages are decompressing at the same time, they can
conflict over the "fixmepath". If two packages try to write to this at
the same time it results in an error. To avoid this we remove the file
once we've finished processing it.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/sstate.bbclass | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index d7631ca..91f209a 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -183,6 +183,9 @@ def sstate_installpkg(ss, d):
os.system("sed -i -e s:FIXMESTAGINGDIRTARGET:%s:g %s" % (staging_target, sstateinst + file))
os.system("sed -i -e s:FIXMESTAGINGDIRHOST:%s:g %s" % (staging_host, sstateinst + file))
os.system("sed -i -e s:FIXMESTAGINGDIR:%s:g %s" % (staging, sstateinst + file))
+ # Need to remove this or we'd copy it into the target directory and may
+ # conflict with another writer
+ os.remove(fixmefn)
for state in ss['dirs']:
prepdir(state[1])
More information about the Openembedded-commits
mailing list