On 21 September 2015 at 21:33, Martin Jansa <[email protected]> wrote:

> * otherwise there is race-condition between do_configure rm+mkdir and
>   bitbake trying to use it as CWD for do_populate_lic task, which
>   results in errors like this:
>

It took me a few minutes to understand this race:

Task A executing perf:do_configure and deleting ${B}
Task B finishing perf:do_populate_lic and so running the sstate generation
logic and the functions listed in SSTATEPOSTINSTFUNCS, which get executed
with the default cwd of ${B}.

I'll note that autotools.bbclass also does rmdir/mkdir ${B} so I'm curious
why you see it more in perf and cmake and not everything else.

Would a better long-term fix be to pass cwd=${WORKDIR} to exec_func in the
sstate code to stop the functions being executed in ${B} (after vetting the
functions, obviously).  FWIW I'm the owner of the bug to stop bitbake
knowing about ${B} which is leading to exactly this sort of problem.

Ross
-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to