| Summary: | Mismatching layer version error message isn't clear | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Yi Zhao <yi.zhao> |
| Component: | core | Assignee: | Paul Eggleton <bluelightning> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | alexandru.c.georgescu, bluelightning, jessica.zhang, ke.zou, meta.mr.watcher, meta.watcher |
| Version: | 1.6 | ||
| Target Milestone: | 1.8 M3 | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
I wouldn't describe it as redundant, just very annoying - this situation comes about because poky's LAYER_CONF_VERSION is out-of-step with OE-Core, and it's set in poky.conf so changing DISTRO means the value changes and then no longer matches the LCONF_VERSION in your bblayers.conf. This is a long-standing problem, and I think we've reached the point where we really need to do something about it (for 1.7). As Paul seems to have an idea about how to deal with this, assigning to him. I've sent out an RFC patch to the bitbake and OE-Core lists: http://lists.openembedded.org/pipermail/bitbake-devel/2015-January/005370.html Argh, wrong bug - ignore the previous message OK, I've just sent a couple of patches for this - one to the openembedded-core mailing list and one to the poky list (since both sides need fixing). Fixes merged to master (fixes were required on both the OE-Core and Poky side): http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=1bb00223844bfabe1f6d75c8179d4cbbd4fb5466 http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=19e06e6584ab2aa31709bcf8fe7b566cafd297e7 |
Git rev: master/3e528d3e4bc542ca2f654c54363c56af0fb9f61b Steps: 1. Set an invalid value for DISTRO in local.conf. e.g. DISTRO ?= "foo" 2. Run bitbake core-image-minimal I got the following errors: ########################## ERROR: OE-core's config sanity checker detected a potential misconfiguration. Either fix the cause of this error or at your own risk disable the checker (see sanity.conf). Following is the list of potential problems / advisories: Your version of bblayers.conf has the wrong LCONF_VERSION (has 6, expecting 5). Please compare the your file against bblayers.conf.sample and merge any changes before continuing. "meld conf/bblayers.conf /buildarea3/yzhao1/poky-build/meta*/conf/bblayers.conf.sample" is a good way to visualise the changes. DISTRO 'foo' not found. Please set a valid DISTRO in your local.conf ERROR: Execution of event handler 'check_sanity_eventhandler' failed ERROR: Command execution failed: Exited with 1 ############################ I didn't change the bblayers.conf or LCONF_VERSION. But the message showed there is a wrong LCONF_VERSION. Looks this message is redundant.