| Summary: | Improve the error message for tray bblayers.conf files | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Laszlo Papp <lpapp> |
| Component: | bitbake | Assignee: | Richard Purdie <richard.purdie> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Low | CC: | jessica.zhang, poky.bs.watcher, poky.watcher, ross.burton |
| Version: | 1.4 | ||
| Target Milestone: | Future | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Laszlo Papp
2013-07-25 08:44:54 UTC
The error is "file not found", and explicitly referring to layers that don't exist is probably one of the rarer causes of this, the more common one being a typo. There's no way for bitbake to know the difference between you making a typo ("meta-yacto") or referring to a layer that only exists in the future ("meta-yocto-bsp", on Denzil).
The incompatible change situation is covered by the LCONF_VERSION flag already, which will catch you using a Dylan bblayers.conf with Denzil. The parsing order could be improved as the sanity test happens *after* the layer parse.
Actually, even a typo hint could be added as it could be known what layers exist when doing this. See the Levenshtein distance for details. Note, how git for instance handles that when you mistype something slightly. That is a different use case though to invalid bblayers.conf which I had issue with. Upon reviewing this, "file not found" seems to be a clear error and I'm not sure we have any plans to add further diagnostics to the code. Patches to aid usability are welcome but we have no plans for this. |