Bug 4447 - The cache checksum for the base configuration does not change when the task data variable changes
Summary: The cache checksum for the base configuration does not change when the task d...
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.5
Assignee: Laurentiu Palcu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-05-02 14:48 UTC by Laurentiu Palcu
Modified: 2013-05-03 18:08 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurentiu Palcu 2013-05-02 14:48:14 UTC
While working on an archiver issue, it was observed that changing the task data variable in a certain class did not produce the correct behavior. It can be reproduced by changing any "addtask" line anywhere in bitbake, but this what I've been playing with:

1. Add the following in the local.conf:
ARCHIVER_MODE ?= "original"
ARCHIVER_MODE[type] ?= "tar"
ARCHIVER_MODE[log_type] ?= "logs_with_scripts"
ARCHIVER_MODE[filter] = "no"
ARCHIVER_CLASS = "${@'archive-${ARCHIVER_MODE}-source' if ARCHIVER_MODE != 'none' else ''}"
INHERIT += "${ARCHIVER_CLASS}"

2. in archive-original-source.bbclass, change the following line:
-addtask do_dumpdata_create_diff_gz
+addtask do_dumpdata_create_diff_gz before do_rootfs

3. do a bitbake -g core-image-sato

4. run `cat task-depends.dot |grep do_rootfs|grep create`

Expected result:
"core-image-sato.do_rootfs" -> "core-image-sato.do_dumpdata_create_diff_gz"

Actual result:
The command will not output anything
Comment 1 Laurentiu Palcu 2013-05-02 14:49:47 UTC
One additional comment: if tmp/cache directory is removed, the task dependencies will be computed correctly.