[OE-core] Avoid race condition between do_unpack and do_deploy_archives in archiver.bbclass
Burton, Ross
ross.burton at intel.com
Fri Aug 14 10:12:20 UTC 2015
On 14 August 2015 at 07:27, Clemens Lang <clemens.lang at bmw-carit.de> wrote:
> I see this in the code, but my error messages speak a very different
> language. Maybe it's a race condition with do_unpack, which actually
> deletes and re-creates these directories again? In any case, there is a
> race condition that causes the directory to be missing when it should be
> there.
>
> For reference, here's one that fails to chdir in Python code:
>
Right, so it's probably racing with unpack which as you say is deleting $S
to recreate it from scratch. Sounds like do_deploy_archives needs [dirs]
set to something other than $B. The other archiver tasks use
ARCHIVER_OUTDIR as the cwd, or there's always WORKDIR as a good alternative.
Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150814/97605dc0/attachment-0002.html>
More information about the Openembedded-core
mailing list