diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2020-06-16 09:39:17 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-06-17 11:10:28 +0100 |
commit | 7a57e777597d7f66d065582cfb83cd8f9468f4af (patch) | |
tree | 7fd5b3a953b8f66c502e06392ab058de8c58c3e6 /meta/classes/archiver.bbclass | |
parent | 5e208e0ff4f3cb5f507ce2ea24f5a864f1a72658 (diff) | |
download | poky-7a57e777597d7f66d065582cfb83cd8f9468f4af.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: 8a7c7794870815030239e90b03e37ed302b7e885)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/archiver.bbclass')
-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 c2c049c343..e221fff695 100644 --- a/meta/classes/archiver.bbclass +++ b/meta/classes/archiver.bbclass | |||
@@ -583,7 +583,7 @@ addtask do_deploy_archives_setscene | |||
583 | 583 | ||
584 | addtask do_ar_original after do_unpack | 584 | addtask do_ar_original after do_unpack |
585 | addtask do_unpack_and_patch after do_patch | 585 | addtask do_unpack_and_patch after do_patch |
586 | addtask do_ar_patched after do_unpack_and_patch | 586 | addtask do_ar_patched after do_unpack_and_patch before do_preconfigure do_configure |
587 | addtask do_ar_configured after do_unpack_and_patch | 587 | addtask do_ar_configured after do_unpack_and_patch |
588 | addtask do_ar_mirror after do_fetch | 588 | addtask do_ar_mirror after do_fetch |
589 | addtask do_dumpdata | 589 | addtask do_dumpdata |