| Summary: | bitbake: printdiff looks for siginfo in incorrect locations for some tasks | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Christopher Larson <kergoth> |
| Component: | bitbake | Assignee: | Christopher Larson <kergoth> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | Undecided | CC: | poky.bs.watcher, poky.watcher |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Christopher Larson
2015-04-02 21:13:49 UTC
Confirmed that what's written out and what printdiff expects don't match up for the fetch/unpack/patch tasks. If I build quilt-native, then modify its do_unpack, wipe tmp, and then run -S printdiff, it gives no useful detail: NOTE: Preparing RunQueue The differences between the current build and any cached tasks start at the following tasks: /scratch/testbuild/poky2/meta/recipes-devtools/quilt/quilt-native_0.64.bb, do_unpack NOTE: Reparsing files to collect dependency data Writing locked sigs to /scratch/testbuild/poky2/build/locked-sigs.inc NOTE: Tasks Summary: Attempted 0 tasks of which 0 didn't need to be rerun and all succeeded. If I then cp -a the non-native siginfo into the NATIVELSBSTRING path, and correct their filenames to 'quilt-native:i686-linux' rather than 'quilt:', I get this, which is useful: NOTE: Preparing RunQueue The differences between the current build and any cached tasks start at the following tasks: /scratch/testbuild/poky2/meta/recipes-devtools/quilt/quilt-native_0.64.bb, do_unpack NOTE: Reparsing files to collect dependency data Writing locked sigs to /scratch/testbuild/poky2/build/locked-sigs.inc Task quilt-native:do_unpack couldn't be used from the cache because: We need hash 95848187e61c749c35950710d814039d, closest matching task was c16c7a79a6cd95766dc26de62d769f7d Task dependencies changed from: ['BP', 'BPN', 'PN', 'PV', 'S', 'SAVANNAH_GNU_MIRROR', 'SPECIAL_PKGSUFFIX', 'SRC_URI', 'SRC_URI[md5sum]', 'SRC_URI[sha256sum]', 'base_do_unpack', 'base_prune_suffix'] to: ['BP', 'BPN', 'PN', 'PV', 'S', 'SAVANNAH_GNU_MIRROR', 'SPECIAL_PKGSUFFIX', 'SRC_URI', 'SRC_URI[md5sum]', 'SRC_URI[sha256sum]', 'base_do_unpack', 'base_prune_suffix', 'do_something'] basehash changed from 144921aa0aa4d2a91da897867d286d18 to 7019e9b621627c6b5001dedfe89a6eac Dependency on variable do_something was added NOTE: Tasks Summary: Attempted 0 tasks of which 0 didn't need to be rerun and all succeeded. From reading sstate.bbclass, it seems this was by design for the following tasks: "fetch", "unpack", "patch", "populate_lic", "preconfigure", but at least printdiff doesn't seem to be picking those up when dumping the scene information. Working on a fix for sstatesig.py now. Currently doing more testing of https://gist.github.com/kergoth/3713d779c14dc8b98f36 before submission to the oe-core list. Bumping importance, as being able to diagnose why something is building from scratch rather than using the sstate-cache is, from my perspective at least, a pretty important piece of functionality. Patch emailed to the oe-core list. Richard merged this, so resolving. |