Re: [OE-core] Avoid race condition between do_unpack and do_deploy_archives in archiver.bbclass

2015-08-14 Thread Clemens Lang
On Thu, Aug 13, 2015 at 12:09:07PM +0100, Burton, Ross wrote: I'm not sure I follow this. Functions are executed using exec_func() will create and cd to the default directory, so if that is ${B} then exec_func will create ${B} before executing the function. I see this in the code, but my

Re: [OE-core] Avoid race condition between do_unpack and do_deploy_archives in archiver.bbclass

2015-08-14 Thread Burton, Ross
On 14 August 2015 at 07:27, Clemens Lang clemens.l...@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

[OE-core] Avoid race condition between do_unpack and do_deploy_archives in archiver.bbclass

2015-08-13 Thread Clemens Lang
Hi, the following patch fixes a race condition in archiver.bbclass that can occur when a very specific set of preconditions is fulfilled: - a recipe sets $S to a directory that will be created by do_unpack - $B is at its default value of $S - the license of the recipe is in

Re: [OE-core] Avoid race condition between do_unpack and do_deploy_archives in archiver.bbclass

2015-08-13 Thread Burton, Ross
On 13 August 2015 at 10:09, Clemens Lang clemens.l...@bmw-carit.de wrote: Because do_deploy_archives does not specify a working directory, it defaults to $B, which does not exist when do_deploy_archives is run in parallel (or before) do_unpack. I'm not sure I follow this. Functions are