path: root/meta/classes
diff options
authorJoshua Watt <>2020-07-01 02:49:23 (GMT)
committerRichard Purdie <>2020-07-16 21:28:40 (GMT)
commit854b876c25e98b21893bf39290890f68f09e30ac (patch)
tree9231e60423741028ebcb3edc353c50cfbf64cf36 /meta/classes
parent31a7824665ccc90c8a7ff01a7edcafea64a4fcb2 (diff)
classes/archiver: run do_unpack_and_patch after do_preconfigure
The commit 8a7c779487 ("classes/archiver: Create patched archive before configuring") fixed a race condition when using the archiver, but introduced a bug where the GCC source would occasionally be deleted due to the archiving code running before do_preconfigure. Instead, make sure the archiving code runs after do_preconfigure by making do_unpack_and_patch depend on it. This makes more sense anyway since do_preconfigure is effectively an extension of do_patch. This fixes errors like: cat: .../gcc/defaults.h: No such file or directory when making certain configuration changes (From OE-Core rev: b6d4176f82b9728af91a4b982ca25fbbee5f9890) Signed-off-by: Joshua Watt <> Signed-off-by: Richard Purdie <> (cherry picked from commit d4be264061023ae0ea6e023d82a7b99605bfc22c) Signed-off-by: Steve Sakoman <> Signed-off-by: Richard Purdie <>
Diffstat (limited to 'meta/classes')
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index a8d3afc..bf275f4 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -583,8 +583,8 @@ do_deploy_archives[sstate-outputdirs] = "${DEPLOY_DIR_SRC}"
583addtask do_deploy_archives_setscene 583addtask do_deploy_archives_setscene
584 584
585addtask do_ar_original after do_unpack 585addtask do_ar_original after do_unpack
586addtask do_unpack_and_patch after do_patch 586addtask do_unpack_and_patch after do_patch do_preconfigure
587addtask do_ar_patched after do_unpack_and_patch before do_preconfigure do_configure 587addtask do_ar_patched after do_unpack_and_patch before do_configure
588addtask do_ar_configured after do_unpack_and_patch 588addtask do_ar_configured after do_unpack_and_patch
589addtask do_ar_mirror after do_fetch 589addtask do_ar_mirror after do_fetch
590addtask do_dumpdata 590addtask do_dumpdata