<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13148</bug_id>
          
          <creation_ts>2019-01-24 10:55:34 +0000</creation_ts>
          <short_desc>bitbake-layers show-layers shows incorrect information</short_desc>
          <delta_ts>2019-02-15 03:00:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.7 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>Alexei.Fedorov</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>82839</commentid>
    <comment_count>0</comment_count>
    <who name="">Alexei.Fedorov</who>
    <bug_when>2019-01-24 10:55:34 +0000</bug_when>
    <thetext>With the following layers defined in bblayers.conf:

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

Executing &quot;bitbake-layers show-layers&quot; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82844</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-01-24 15:42:09 +0000</bug_when>
    <thetext>We should give a fatal error if two layers are being defined with the same namespace as that is not intended to work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82862</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2019-01-25 06:53:32 +0000</bug_when>
    <thetext>I&apos;ve sent the patch for review:

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=rbt/bbfile&amp;id=070002fb5989fd3c629d06ce77d9b33d11982a18</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83014</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2019-02-15 03:00:01 +0000</bug_when>
    <thetext>Merged into master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5fa3b5b15229babc9f96606c79436ab83651bf83</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>