]> code.ossystems Code Review - openembedded-core.git/commitdiff
archive-*-source.bbclass: have do_dumpdata_create_diff_gz task run before do_rootfs
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Fri, 3 May 2013 09:01:04 +0000 (12:01 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 3 May 2013 15:15:09 +0000 (16:15 +0100)
do_rootfs[cleandirs] contains ${S} and, if do_rootfs task starts before
the do_dumpdata_create_diff_gz is finished, an error will occur in the
process because the directory will be removed while still needed by the
create_diff_gz() function.

This patch will force the do_dumpdata_create_diff_gz task to run before
do_rootfs when the final image is created.

[YOCTO #4310]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/archive-configured-source.bbclass
meta/classes/archive-original-source.bbclass
meta/classes/archive-patched-source.bbclass

index d346f69e29f5e1045cf6fcef34b67d4d12d758c7..a481b141db151cbb49fcb5961a9dd4ef524c3cde 100644 (file)
@@ -14,7 +14,7 @@ addtask do_archive_configured_sources after do_configure
 addtask do_archive_scripts_logs
 
 # Get dump date and create diff file 
-addtask do_dumpdata_create_diff_gz
+addtask do_dumpdata_create_diff_gz before do_rootfs
 
 python () {
     pn = d.getVar('PN', True)
index 7258293c930d2a57b01d0443f2f2faeb20211cf4..2796ff96003802e07ff3248e44dfbc6842b3eb28 100644 (file)
@@ -14,7 +14,7 @@ addtask do_archive_original_sources_patches after do_unpack
 addtask do_archive_scripts_logs
 
 # Get dump date and create diff file 
-addtask do_dumpdata_create_diff_gz
+addtask do_dumpdata_create_diff_gz before do_rootfs
 
 python () {
     pn = d.getVar('PN', True)
index 9e5ec74f4504cbf5c327b35604a9695f7a335b5f..995a25947351fafd12ada4ce070b698773308fa5 100644 (file)
@@ -14,7 +14,7 @@ addtask do_archive_patched_sources after do_patch
 addtask do_archive_scripts_logs
 
 # Get dump date and create diff file 
-addtask do_dumpdata_create_diff_gz
+addtask do_dumpdata_create_diff_gz before do_rootfs
 
 python () {
     pn = d.getVar('PN', True)