<?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>3387</bug_id>
          
          <creation_ts>2012-11-05 14:15:24 +0000</creation_ts>
          <short_desc>bitbake-layers: figure out the LAYERDEPENDS</short_desc>
          <delta_ts>2013-05-02 09:28:27 +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>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.4 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>alexandrux.palalau</cc>
    
    <cc>bluelightning</cc>
    
    <cc>liang.li2</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>zhenfeng.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>27233</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-11-05 14:15:24 +0000</bug_when>
    <thetext>Paul Suggested that enhance bitbake-layers to figure out the LAYERDEPENDS, here are some basic thoughts:

1) Add a command &quot;show-depends&quot; for bitbake-layers.

2) It is not used for showing the LAYERDEPENDS which has been defined in the layer.conf, but for figuring out the LAYERDEPENDS, for example, if the recipe_A from layer_A depends on the recipe_B which is from layer_B, then layer_A should depend on layer_B, it should walk all the recipes in the layer.

3) The LAYERDEPENDS is made by two parts &quot;layer_name:layer_version&quot;, it seems not easy to figure out the layer_version, we can refer the LAYERVERSION, but it may not accurate, for example, if layer_A depends on layer_B, and layer_B&apos;s LAYERSION  = 3, we can&apos;t assume that layer_A&apos;s &quot;LAYERDEPENDS = layer_B:3&quot;, I think that we just figure out the layer_name is OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27234</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-11-05 14:20:39 +0000</bug_when>
    <thetext>Hi Paul,

Would you please help me to take a look at the draft design ? (The first comment  in the upstairs)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27959</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-12-04 15:26:34 +0000</bug_when>
    <thetext>I&apos;m not sure that we actually need to figure out a value for LAYERDEPENDS here - we just need to be able to determine where there is a dependency between recipes that crosses a layer boundary and report that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28042</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-12-06 12:40:39 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I&apos;m not sure that we actually need to figure out a value for LAYERDEPENDS
&gt; here - we just need to be able to determine where there is a dependency
&gt; between recipes that crosses a layer boundary and report that.

Thanks, Paul, I will send the patch sooner.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29430</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-02-01 03:09:33 +0000</bug_when>
    <thetext>Merged into master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=8d80483e2f0f755a61087be1dffaf595fbc467fd

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4a09c91ce4a0b040a71a49d741d10fc850e887fa</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29516</commentid>
    <comment_count>5</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2013-02-05 08:57:52 +0000</bug_when>
    <thetext>no error when run following command:
1. source path_to_git/oe-init-build-env build_dir
2. bitbake-layers show-cross-depends
git info: 7e9cb437b1b720e656f4a33f73c07c5dc7356a2c
git branch:poky/master</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32837</commentid>
    <comment_count>6</comment_count>
    <who name="Alexandru Palalau">alexandrux.palalau</who>
    <bug_when>2013-05-02 09:28:27 +0000</bug_when>
    <thetext>The following Testopia test case was created:
https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=756</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>