]> code.ossystems Code Review - openembedded-core.git/commit
classes/reproducible_build: Move SDE deploy to another directory
authorJoshua Watt <jpewhacker@gmail.com>
Thu, 26 Sep 2019 17:57:51 +0000 (12:57 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 27 Sep 2019 12:01:17 +0000 (13:01 +0100)
commitac27d12fe5480e9b8cc93de6a32bf9631c52d7f4
tree35815da808c2989785fa5769669d1b41c8db72e0
parent141d02400696020e83df3edcf13021fde139d261
classes/reproducible_build: Move SDE deploy to another directory

The deployment of the source date epoch file had a race condition where
any task attempting to read from the file would race with creation of
the sstate archive for the do_deploy_source_date_epoch task. The
creation of the sstate archive requires moving the directory to a
temporary location, then moving it back. This means that the file
disappears for a short period of time, which will cause a failure if any
other task is running and trying to open the file to get the current
source date epoch.

The solution is to copy the source date epoch file to a separate
directory when deploying so the file never disappears. When the file is
restored from sstate, it is moved to the correct location after being
extracted.

[YOCTO #13501]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/reproducible_build.bbclass