Bug 9019 - Failed to install sdk_ext if sdk_ext build with 'rm_work' feature
Summary: Failed to install sdk_ext if sdk_ext build with 'rm_work' feature
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.1 M4
Assignee: Bill Randle
QA Contact: Yi Zhao
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-02-01 09:32 UTC by Yi Zhao
Modified: 2016-04-25 06:32 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: Don't know


Attachments
preparing_build_system.log (633.22 KB, text/x-log)
2016-02-01 09:32 UTC, Yi Zhao
no flags Details
Proposed patch (1.12 KB, patch)
2016-04-04 22:38 UTC, Bill Randle
no flags Details | Diff
Proposed patch (v2) (1001 bytes, patch)
2016-04-04 23:26 UTC, Bill Randle
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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