]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/archiver: run do_unpack_and_patch after do_preconfigure
authorJoshua Watt <JPEWhacker@gmail.com>
Wed, 1 Jul 2020 02:49:23 +0000 (21:49 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Jul 2020 15:17:01 +0000 (16:17 +0100)
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

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/archiver.bbclass

index e221fff695351e44f76b226c870f2f19da270e8c..0744089f744b6520406f010a44eb1fb9f28b8ae4 100644 (file)
@@ -582,8 +582,8 @@ do_deploy_archives[sstate-outputdirs] = "${DEPLOY_DIR_SRC}"
 addtask do_deploy_archives_setscene
 
 addtask do_ar_original after do_unpack
-addtask do_unpack_and_patch after do_patch
-addtask do_ar_patched after do_unpack_and_patch before do_preconfigure do_configure
+addtask do_unpack_and_patch after do_patch do_preconfigure
+addtask do_ar_patched after do_unpack_and_patch before do_configure
 addtask do_ar_configured after do_unpack_and_patch
 addtask do_ar_mirror after do_fetch
 addtask do_dumpdata