Bug 10568 - Extensible SDK: TEMPLATECONF value causes failures if poky repo is used without meta-poky
Summary: Extensible SDK: TEMPLATECONF value causes failures if poky repo is used witho...
Status: RESOLVED FIXED
Alias: None
Product: eSDK
Classification: Yocto Project Subprojects
Component: eSDK (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.3 M1
Assignee: Paul Eggleton
QA Contact: Francisco Pedraza
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-11-01 20:33 UTC by Paul Eggleton
Modified: 2016-11-08 17:27 UTC (History)
1 user (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 Paul Eggleton 2016-11-01 20:33:04 UTC
If you build an eSDK using the poky repository but without meta-poky in your bblayers.conf (which of course means you're using a different DISTRO value) then when you come to install the eSDK you will get an error like this:

  Error: 'meta-poky/conf' must be a directory containing local.conf & bblayers.conf

Ignoring for the moment the slightly incorrect error message, the issue is that the TEMPLATECONF environment variable is being set simply by using the poky repository, since there is a .templateconf directory at its root that sets it to "meta-poky/conf" if it isn't already set. This isn't a problem during normal operation since meta-poky/conf exists, but when you generate the eSDK, meta-poky won't be copied into it because that layer is not in bblayers.conf and thus the error occurs when bitbake first gets run internally during the build system preparation.

Since we don't actually need the template config files in the eSDK (we already generate real ones), we should just ensure the value gets set to a reasonable value when building it in order to avoid the error.
Comment 1 Ross Burton 2016-11-08 17:27:51 UTC
Fixed in oe-core 5ee32191a18013061dfa72e64713a94c5d321496.