| Summary: | Adding .bbappend should invalidate cache | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Gary Thomas <gary> |
| Component: | bitbake | Assignee: | Richard Purdie <richard.purdie> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | jessica.zhang, poky.bs.watcher, poky.watcher, sgw, tomw |
| Version: | 1.0 | ||
| Target Milestone: | 1.1 M2 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Gary Thomas
2011-05-20 04:32:41 UTC
This seems to be another consequence of this bug: when a new bbappend recipe is added to a working image (rootfs has been previously generated), the associated RPM is rebuilt, but the rebuild of the rootfs is not triggered (you have to do a bitbake -c clean <image> before the change is propagated from the RPM into the rootfs).
Here is an example, build an image using ext3 as the output and make the system rpm based. Then, add a "<machine>/meta/recipes/recipes-core/netbase/netbase_5.1.bbappend" containing the following:
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
PRINC := "${@int(PRINC) + 3}"
Add a hosts file into "<machine>/meta/recipes/recipes-core/netbase/files/" and build the image (e.g. bitbake core-image-*). The bbappend is processed, an RPM with the correct contents is produced, but the rootfs image is not updated.
Subsequent attempts to build the image will ignore the new change until a clean is done of the rootfs image.
I'm pretty sure you're running into http://git.yoctoproject.org/cgit.cgi/poky/commit/meta/lib/oe/sstatesig.py?id=80d522a5bc694fdb8b8a53ad4aa36410f3612c6b and this has been resolved. In future please open new bugs for new issues like this, its a different issue to the one described here which was fixed 2.5 years ago. |