[OE-core] [RFC][PATCHv2] cmake.bbclass, perf: don't re-create ${B}

Burton, Ross ross.burton at intel.com
Mon Sep 21 20:55:56 UTC 2015


On 21 September 2015 at 21:33, Martin Jansa <martin.jansa at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150921/4c4c2bb5/attachment-0002.html>


More information about the Openembedded-core mailing list