Bug 13148 - bitbake-layers show-layers shows incorrect information
Summary: bitbake-layers show-layers shows incorrect information
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ major
Target Milestone: 2.7 M3
Assignee: Robert Yang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-01-24 10:55 UTC by Alexei.Fedorov
Modified: 2019-02-15 03:00 UTC (History)
2 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 Alexei.Fedorov 2019-01-24 10:55:34 UTC
With the following layers defined in bblayers.conf:

BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS ?= " \
  ${TOPDIR}/../poky/meta \
  ${TOPDIR}/../poky/meta-poky \
  ${TOPDIR}/../poky/meta-yocto-bsp \
  ${TOPDIR}/../meta-openembedded/meta-oe \
  ${TOPDIR}/../openembedded-core/meta \
  " 

Executing "bitbake-layers show-layers" reports /poky/meta twice:

NOTE: Starting bitbake server...
layer                 path                                      priority
==========================================================================
meta                  ../build/../poky/meta  5
meta-poky             ../build/../poky/meta-poky  5
meta-yocto-bsp        ../build/../poky/meta-yocto-bsp  5
meta-oe               ../build/../meta-openembedded/meta-oe  6
meta                  ../build/../poky/meta  5

Then if ${TOPDIR}/../openembedded-core/meta is placed before ${TOPDIR}/../poky/meta, i.e.:

  ${TOPDIR}/../openembedded-core/meta \
  ${TOPDIR}/../poky/meta \
  ${TOPDIR}/../poky/meta-poky \
  ${TOPDIR}/../poky/meta-yocto-bsp \

openembedded-core/meta is displayed twice with poky/meta got missing:

layer                 path                                      priority
==========================================================================
meta                  ../build/../openembedded-core/meta  5
meta                  ../build/../openembedded-core/meta  5
meta-poky             ../build/../poky/meta-poky  5
meta-yocto-bsp        ../build/../poky/meta-yocto-bsp  5
meta-oe               ../build/../meta-openembedded/meta-oe  6
Comment 1 Richard Purdie 2019-01-24 15:42:09 UTC
We should give a fatal error if two layers are being defined with the same namespace as that is not intended to work.