archive-*-source.bbclass: have do_dumpdata_create_diff_gz task run before do_rootfs
PATCH 1/1 archive-*-source.bbclass: have do_dumpdata_create_diff_gz task run before do_rootfs
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]
--- meta/classes/archive-configured-source.bbclass | 2 +- meta/classes/archive-original-source.bbclass | 2 +- meta/classes/archive-patched-source.bbclass | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
meta/classes/archive-configured-source.bbclass +1 -1
@@ -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)
meta/classes/archive-original-source.bbclass +1 -1
@@ -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)
meta/classes/archive-patched-source.bbclass +1 -1
@@ -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)
Signature · 1 line
1.7.9.5
Hi Laurentiu,
Quoted 22 lines · Laurentiu Palcu
do_rootfs[cleandirs] contains ${S} and, if
do_rootfstask starts before thedo_dumpdata_create_diff_gzis finished, an error will occur in the process because the directory will be removed while still needed by thecreate_diff_gz()function.This patch will force the
do_dumpdata_create_diff_gztask to run beforedo_rootfswhen the final image is created.[YOCTO #4310]
Signed-off-by Laurentiu Palcu <[email protected]>--- meta/classes/archive-configured-source.bbclass | 2 +- meta/classes/archive-original-source.bbclass | 2 +- meta/classes/archive-patched-source.bbclass | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)meta/classes/archive-configured-source.bbclass +0
-0
meta/classes/archive-configured-source.bbclass addtask do_archive_configured_sources after do_configure · line 17
Quoted 5 lines
meta/classes/archive-configured-source.bbclass +1
-1@@ -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
This will always add the task to the build, and break our ability to filter out packages. I would suggest handling this dependency in the anonymous python function after filtering has been applied.
meta/classes/archive-original-source.bbclass addtask do_archive_original_sources_patches after do_unpack · line 17
Quoted 13 lines
meta/classes/archive-configured-source.bbclass +0
-0python () { pn = d.getVar('PN', True)meta/classes/archive-original-source.bbclass +1
-1@@ -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
ditto
meta/classes/archive-patched-source.bbclass addtask do_archive_patched_sources after do_patch · line 17
Quoted 13 lines
meta/classes/archive-original-source.bbclass +0
-0python () { pn = d.getVar('PN', True)meta/classes/archive-patched-source.bbclass +1
-1@@ -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
ditto
Thanks,
Kevin
Quoted 11 lines
meta/classes/archive-patched-source.bbclass +0
-0python () { pn = d.getVar('PN', True)Signature · 7 lines
1.7.9.5 _______________________________________________ Openembedded-core mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Hi Kevin,
Quoted 27 lines · Kevin Strasser
Hi Laurentiu,
Quoted 24 lines · Laurentiu Palcu
Quoted 24 lines
do_rootfs[cleandirs] contains ${S} and, if
do_rootfstask starts before thedo_dumpdata_create_diff_gzis finished, an error will occur in the process because the directory will be removed while still needed by thecreate_diff_gz()function.This patch will force the
do_dumpdata_create_diff_gztask to run beforedo_rootfswhen the final image is created.[YOCTO #4310]
Signed-off-by Laurentiu Palcu <[email protected]>--- meta/classes/archive-configured-source.bbclass | 2 +- meta/classes/archive-original-source.bbclass | 2 +- meta/classes/archive-patched-source.bbclass | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)meta/classes/archive-configured-source.bbclass +0
-0@@ -14,7 +14,7 @@ addtask do_archive_configured_sources after do_configure addtask do_archive_scripts_logs
Quoted 6 lines
Quoted 3 lines
meta/classes/archive-configured-source.bbclass addtask do_archive_configured_sources after do_configure · line 17
Quoted 3 lines
meta/classes/archive-configured-source.bbclass +1
-1# Get dump date and create diff file -addtask do_dumpdata_create_diff_gz +addtask do_dumpdata_create_diff_gz before do_rootfsThis will always add the task to the build, and break our ability to filter out packages. I would suggest handling this dependency in the anonymous python function after filtering has been applied.
AFAIK, the 'before do_rootfs' doesn't add the task to the build. It actually forces the task to be run before do_rootfs. I have just tested this with ARCHIVER_MODE[filter] set to both "no" and "yes" and playing with COPYLEFT_LICENSE_INCLUDE and COPYLEFT_LICENSE_EXCLUDE. It seeems to produce the desired effect.
However, and this might be an issue but I'm not sure if this is the desired behavior(I have to dig in a little), changing ARCHIVER_MODE[filter] in local.conf does not trigger a recipe reparsing and you might not see the effect you're expecting. Try removing the tmp/cache first.
Thanks,
Laurentiu
Quoted 36 lines · Laurentiu Palcu
Hi Kevin,
Quoted 33 lines · Kevin Strasser
Hi Laurentiu,
Quoted 24 lines · Laurentiu Palcu
Quoted 24 lines
do_rootfs[cleandirs] contains ${S} and, if
do_rootfstask starts before thedo_dumpdata_create_diff_gzis finished, an error will occur in the process because the directory will be removed while still needed by thecreate_diff_gz()function.This patch will force the
do_dumpdata_create_diff_gztask to run beforedo_rootfswhen the final image is created.[YOCTO #4310]
Signed-off-by Laurentiu Palcu <[email protected]>--- meta/classes/archive-configured-source.bbclass | 2 +- meta/classes/archive-original-source.bbclass | 2 +- meta/classes/archive-patched-source.bbclass | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)meta/classes/archive-configured-source.bbclass +0
-0@@ -14,7 +14,7 @@ addtask do_archive_configured_sources after do_configure addtask do_archive_scripts_logsQuoted 3 lines
meta/classes/archive-configured-source.bbclass addtask do_archive_configured_sources after do_configure · line 17
Quoted 3 lines
meta/classes/archive-configured-source.bbclass +1
-1# Get dump date and create diff file -addtask do_dumpdata_create_diff_gz +addtask do_dumpdata_create_diff_gz before do_rootfsThis will always add the task to the build, and break our ability to filter out packages. I would suggest handling this dependency in the anonymous python function after filtering has been applied.
Indeed, after adding MIT to COPYLEFT_LICENSE_EXCLUDE, the task is still added as a dependency to the image's do_rootfs... I'll try a fix this in the anonymous python function.
Thanks,
Laurentiu
Quoted 20 lines
AFAIK, the 'before
do_rootfs' doesn't add the task to the build. It actually forces the task to be run beforedo_rootfs. I have just tested this with ARCHIVER_MODE[filter] set to both "no" and "yes" and playing withCOPYLEFT_LICENSE_INCLUDEandCOPYLEFT_LICENSE_EXCLUDE. It seeems to produce the desired effect.However, and this might be an issue but I'm not sure if this is the desired behavior(I have to dig in a little), changing ARCHIVER_MODE[filter] in local.conf does not trigger a recipe reparsing and you might not see the effect you're expecting. Try removing the tmp/cache first.
Thanks,
Laurentiu_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core