Bug 6139 - Mismatching layer version error message isn't clear
Summary: Mismatching layer version error message isn't clear
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.6
Hardware: All Multiple
: Medium normal
Target Milestone: 1.8 M3
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-04-09 09:53 UTC by Yi Zhao
Modified: 2015-02-24 12:01 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2014-04-09 09:53:31 UTC
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.
Comment 1 Paul Eggleton 2014-04-09 10:45:49 UTC
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).
Comment 2 Ross Burton 2014-11-13 17:16:53 UTC
As Paul seems to have an idea about how to deal with this, assigning to him.
Comment 3 Paul Eggleton 2015-01-29 14:08:36 UTC
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
Comment 4 Paul Eggleton 2015-01-29 14:08:58 UTC
Argh, wrong bug - ignore the previous message
Comment 5 Paul Eggleton 2015-02-05 12:07:09 UTC
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).