]> code.ossystems Code Review - openembedded-core.git/commit
externalsrc: Fix a source date epoch race in reproducible builds
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 Sep 2021 10:55:44 +0000 (11:55 +0100)
committerAnuj Mittal <anuj.mittal@intel.com>
Wed, 20 Oct 2021 14:54:01 +0000 (22:54 +0800)
commit295947ac48a8c14eba8f2bedcfb7b59121a1da5f
tree7703c91d33677a64c41228b304d11d58726822cb
parentbc8448b55f06c75ec129fc32cee75ef945a49d3e
externalsrc: Fix a source date epoch race in reproducible builds

When reproducible builds are enabled and externalsrc is in use, the
source date epoch function is added. The conditions on the conditional
code removing the unpack task need to match the deltask function, else
the source date epoch function can end up running twice and the functions
can race with each other causing build failures or corruption.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e82095c02881410035ca23dc12692f074d8ed39b)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/classes/externalsrc.bbclass