diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2021-06-01 21:36:48 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-06-03 23:09:42 +0100 |
commit | c78b8a87db50323846834729f72310d6ec95a39d (patch) | |
tree | f2ecae20a8048fbdc0940921877e044f001f68d3 /meta-poky/conf/distro/poky-tiny.conf | |
parent | 775b07b57322fee339ae6091bccac9b482c91306 (diff) | |
download | poky-c78b8a87db50323846834729f72310d6ec95a39d.tar.gz |
classes/reproducible_build: Use atomic rename for SDE file
If an existing source date epoch file was found during do_unpack, it was
deleted and a new one would be written in its place. This causes a race
with check-before-use code in get_source_date_epoch_value. Resolve the
problem by making do_unpack write the new source date epoch to a
temporary file, then do an atomic rename to ensure it's always present,
and change the check-before-use code to use a EAFP exception instead of
checking for file existence.
[YOCTO #14384]
(From OE-Core rev: 0b5e3b33187bf78a2d62cc886463e4b27d6bd228)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-poky/conf/distro/poky-tiny.conf')
0 files changed, 0 insertions, 0 deletions