summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2021-06-01 21:36:48 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-06-03 23:09:18 +0100
commit0b5e3b33187bf78a2d62cc886463e4b27d6bd228 (patch)
tree308a7f31b1a5f5025b3d97f3851d572673574926 /meta/recipes-devtools
parenta634a0555d000d93a23890b68e54f06370f0a97e (diff)
downloadopenembedded-core-contrib-0b5e3b33187bf78a2d62cc886463e4b27d6bd228.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] Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
0 files changed, 0 insertions, 0 deletions