Bug 11849 - Using rm_work results in rebuilding of image phases rather than using sstate
Summary: Using rm_work results in rebuilding of image phases rather than using sstate
Status: RESOLVED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 2.3.2
Hardware: x86 Multiple
: Undecided minor
Target Milestone: ---
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-07-27 22:26 UTC by Drew Moseley
Modified: 2017-07-31 14:52 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
Log of build steps showing the issue. (3.43 KB, text/plain)
2017-07-27 22:27 UTC, Drew Moseley
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Drew Moseley 2017-07-27 22:26:05 UTC
With the current pyro (5686f4e1fe5229705b8c7d35895aa03827796d13) branch, if I do a build without 'INHERIT += "rm_work"' and then immediately do another build, then no tasks needed to be rerun as expected.

If I add 'INHERIT += "rm_work"' then the subsequent build reruns a number of the image related tasks.

I have seen this behavior in both the pyro and master branches as well as against several different MACHINE settings.

I'll attach a text file with some of my logs.
Comment 1 Drew Moseley 2017-07-27 22:27:08 UTC
Created attachment 3893 [details]
Log of build steps showing the issue.
Comment 2 Richard Purdie 2017-07-30 22:25:35 UTC
This turned out to be quite tricky but there are patches on the mailing list for testing for master. Not sure we'd want to backport things this invasive to pyro.
Comment 3 Drew Moseley 2017-07-31 02:59:29 UTC
For what it's worth, I applied the 5 patches from this series:
    http://lists.openembedded.org/pipermail/openembedded-devel/2017-July/113929.html
to my local build tree in both the Pyro and Master branches and verified that indeed the extra rebuilds no longer occur.

I did have to modify the patch slightly to drop the bits related to systemtap but otherwise it seemed to work.
Comment 4 Richard Purdie 2017-07-31 14:52:07 UTC
These were merged into master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=a089f7b73581f975258dfddaef9f9063ff0f8818

(thanks for testing)