* sstate: Avoid contention between sstate packages
@ 2011-09-07 17:34 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2011-09-07 17:34 UTC (permalink / raw)
To: openembedded-core
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@linuxfoundation.org>
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])
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-09-07 17:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-07 17:34 sstate: Avoid contention between sstate packages Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox