04/09: image/rm_work: Promote do_image_complete to be more sstate like
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
With this change I'm seeing all images failing with:
| DEBUG: Executing shell function do_rm_work
| mv:
?1.0-r0.4.0.do_image_complete.fb2421734f998a50c93250deb80d3024.MACHINE? and ?1.0-r0.4.0.do_image_complete.fb2421734f998a50c93250deb80d3024.MACHINE ? are the same file
| WARNING: exit code 1 from a shell command.
I'll check what's special on my config (what's matched in $j) that this issue wasn't triggered on autobuilder, but any hints would be welcome as well.
Quoted 74 lines · On Mon, Jul 31, 2017 at 4:14 PM, <[email protected]> wrote:
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master
in repository openembedded-core.commit
2ff9d40dc88d43567472218cf3d3faf414398c71
Author: Richard Purdie <[email protected]>
AuthorDate: Sun Jul 30 16:06:57 2017 +0100image/rm_work: Promote
do_image_completeto be more sstate likeWe relied on the missing
do_image_complete_setscenetask to ensure the
dummy
sstate tarball that was created would never be used. This lead to its
own
issues and a better fix forSSTATE_SKIP_CREATIONhas now been merged.We can therefore make
do_image_completelook like a more standard
sstate
task which means image generation doesn't keep rerunning when usingrm_work.We do need to turn do_image_complete's stamp into an sstate version to handle this (it otherwise matches the do_image_* glob).
Signed-off-by Richard Purdie <[email protected]>--- meta/classes/image.bbclass | 4 ++++ meta/classes/rm_work.bbclass | 5 +++++ 2 files changed, 9 insertions(+)meta/classes/image.bbclass +0
-0@@ -289,6 +289,10 @@ do_image_complete[sstate-inputdirs] ="${IMGDEPLOYDIR}"
do_image_complete[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}" do_image_complete[stamp-extra-info] = "${MACHINE}" addtaskdo_image_completeafterdo_imagebeforedo_buildmeta/classes/image.bbclass +4
-0+python do_image_complete_setscene () { + sstate_setscene(d) +} +addtask do_image_complete_setscene # Add image-level QA/sanity checks to IMAGE_QA_COMMANDS #meta/classes/rm_work.bbclass +5
-0@@ -61,6 +61,11 @@ do_rm_work () { i=dummy break ;; + *do_image_complete*) + mv $i `echo $i | sed -e "s#${j}#${j}_setscene#"` + i=dummy + break + ;; *do_rootfs*|*do_image*|*do_bootimg*|*do_bootdirectdisk*|* do_vmimg*|*do_write_qemuboot_conf*) i=dummybreak
--
To stop receiving notification emails like this one, please contact the administrator of this repository.
--
_______________________________________________
Openembedded-commits mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-commits
PATCH 1/1 rm_work: fix build break for do_image_complete
* since following commit:
commit 2ff9d40dc88d43567472218cf3d3faf414398c71
Author: Richard Purdie <[email protected]>
Date: Sun Jul 30 16:06:57 2017 +0100
image/rm_work: Promote do_image_complete to be more sstate like
all image rm_work tasks are failing with:
mv: 1.0-r0.do_image_complete.228730130ba309f85b73b72222ba11d7.raspberrypi3 and
1.0-r0.do_image_complete.228730130ba309f85b73b72222ba11d7.raspberrypi3 are the same file
it's because for $i 1.0-r0.do_image_complete.228730130ba309f85b73b72222ba11d7.raspberrypi3 there will be first SSTATETASK in $j do_deploy, so the sed call doesn't replace anything
It might be different order of SSTATETASKS in my builds (it might work only when
do_image_complete is the first one in the list), but here:
SSTATETASKS="do_deploy do_image_complete do_image_qa do_package do_package_qa do_package_write_ipk do_packagedata do_populate_lic do_populate_sdk do_populate_sdk_ext do_populate_sysroot"
--- meta/classes/rm_work.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/rm_work.bbclass +1 -1
@@ -62,7 +62,7 @@ do_rm_work () { break ;; *do_image_complete*) - mv $i `echo $i | sed -e "s#${j}#${j}_setscene#"` + mv $i `echo $i | sed -e "s#do_image_complete#do_image_complete_setscene#"` i=dummy break ;;
Signature · 1 line
2.14.0