Bug 9019

Summary: Failed to install sdk_ext if sdk_ext build with 'rm_work' feature
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Yi Zhao <yi.zhao>
Component: devtools / tool chainAssignee: Bill Randle <bill.randle>
Status: VERIFIED FIXED QA Contact: Yi Zhao <yi.zhao>
Severity: normal    
Priority: Medium+ CC: alexandru.c.georgescu, ke.zou, meta.mr.watcher, meta.watcher, randy.e.witt, richard.purdie, yi.zhao
Version: 2.1   
Target Milestone: 2.1 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: Don't know
Attachments:
Description Flags
preparing_build_system.log
none
Proposed patch
none
Proposed patch (v2) none

Description Yi Zhao 2016-02-01 09:32:31 UTC
Created attachment 2955 [details]
preparing_build_system.log

Git rev: master/3d2c0f5902cacf9d8544bf263b51ef0dd1a7218c

Steps:
1. Add rm_work in conf/local.conf:
   INHERIT += "rm_work"
2. Build sdk_ext:
   bitbake core-image-sato -c populate_sdk_ext
3. Install the sdk_ext

Error message:
#########################
ERROR: Unexpected tasks left over to be executed:
   task 10 of 5983 (ID: 30, /buildarea/poky_sdk_i586/layers/poky/meta/recipes-devtools/quilt/quilt-native_0.64.bb, do_rm_work)
   ...
   ...
#########################

Please see the attachment for the full log
Comment 1 Randy Witt 2016-03-23 19:34:56 UTC
Bill, I think we just need to whitelist the rm_work tasks in ext_sdk_prepare.py.
Comment 2 Bill Randle 2016-04-04 22:38:43 UTC
Created attachment 3090 [details]
Proposed patch

Blacklist the rm_work task so it doesn't attempt to run it for sdk_ext.
Comment 3 Bill Randle 2016-04-04 23:26:39 UTC
Created attachment 3091 [details]
Proposed patch (v2)

Instead of preventing do_work from running altogether, just don't report it as an error if it didn't run.
Comment 4 Bill Randle 2016-04-13 17:20:46 UTC
Refactored output comparison into its own function so it can be called from a unit test program. Create unit test to verify the fix. Submitted to oe-core mailing list.
Comment 6 Yi Zhao 2016-04-25 06:32:45 UTC
Verified with 2.1 rc2 : krogoth/6c1c01392d91f512e2949ad1d57a75a8077478ba