summaryrefslogtreecommitdiffstats
path: root/scripts/lib/build_perf/html.py
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-20 09:43:39 +0100
commit953031000a13569cc6084d1c8733a08d51ab8229 (patch)
tree366ad78fc678ad3c3b7b894e3eb7a4b00e07209f /scripts/lib/build_perf/html.py
parentbc5e349c1551c69e136d0c61e37064a1ca7ebe3b (diff)
downloadpoky-953031000a13569cc6084d1c8733a08d51ab8229.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: 8b2fd4e5e0841b81b4f709b061b655e2266dd4da) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 0b5e3b33187bf78a2d62cc886463e4b27d6bd228) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/build_perf/html.py')
0 files changed, 0 insertions, 0 deletions