diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2020-06-16 09:39:17 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-06-26 18:26:49 +0100 |
commit | 0ebc923317c5ba9dd4b4ba31306a48025da7dfb9 (patch) | |
tree | e0bc9e5650f08f4e1473ddd97025f5092f8b25f7 /meta/classes | |
parent | 91d22f69d6daf30daa3618e93d769c94ff3ca4d9 (diff) | |
download | poky-0ebc923317c5ba9dd4b4ba31306a48025da7dfb9.tar.gz |
classes/archiver: Create patched archive before configuring
do_configure and do_preconfigure can modify source files, which causes
race conditions if these tasks run in parallel with do_ar_patched. Add
explicit task dependencies to ensure that do_ar_patched finishes before
these tasks start. Specifically, this fixes a race condition with
gcc-source where do_ar_patched races with do_preconfigure deleting
gcc/gengtype-lex.c
(From OE-Core rev: fdd06278dc67e8c13468b89746c562d298a2d63b)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8a7c7794870815030239e90b03e37ed302b7e885)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/archiver.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass index 780c562b68..a8d3afcbe9 100644 --- a/meta/classes/archiver.bbclass +++ b/meta/classes/archiver.bbclass | |||
@@ -584,7 +584,7 @@ addtask do_deploy_archives_setscene | |||
584 | 584 | ||
585 | addtask do_ar_original after do_unpack | 585 | addtask do_ar_original after do_unpack |
586 | addtask do_unpack_and_patch after do_patch | 586 | addtask do_unpack_and_patch after do_patch |
587 | addtask do_ar_patched after do_unpack_and_patch | 587 | addtask do_ar_patched after do_unpack_and_patch before do_preconfigure do_configure |
588 | addtask do_ar_configured after do_unpack_and_patch | 588 | addtask do_ar_configured after do_unpack_and_patch |
589 | addtask do_ar_mirror after do_fetch | 589 | addtask do_ar_mirror after do_fetch |
590 | addtask do_dumpdata | 590 | addtask do_dumpdata |