<?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>9229</bug_id>
          
          <creation_ts>2016-03-08 23:35:23 +0000</creation_ts>
          <short_desc>Layers from layer index not available when using local Yocto release</short_desc>
          <delta_ts>2016-07-15 13:56:29 +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>Toaster</product>
          <component>toaster</component>
          <version>unspecified</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>normal</bug_severity>
          <target_milestone>2.1 M4</target_milestone>
          
          <blocked>9858</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Henry Bruce">henry.bruce</reporter>
          <assigned_to name="Belen Barros Pena">belen.barros.pena</assigned_to>
          <cc>alexandru.costinx.roman</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>stanciux.mihail</cc>
          
          <qa_contact name="Alexandru Roman">alexandru.costinx.roman</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59815</commentid>
    <comment_count>0</comment_count>
    <who name="Henry Bruce">henry.bruce</who>
    <bug_when>2016-03-08 23:35:23 +0000</bug_when>
    <thetext>Expected Behavior
-----------------
If I choose local &quot;Local Yocto Project&quot; as my Yocto release, I should also see layers from layer index and be able to add them.

Observed Behavior
-----------------
If I choose local &quot;Local Yocto Project&quot; as my Yocto release, I don&apos;t see layers from layer index and have to manually import them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59822</commentid>
    <comment_count>1</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-03-09 09:28:45 +0000</bug_when>
    <thetext>We have come to find this &quot;expected&quot;, although it might not be, and it requires some explaining.

Toaster supports building with different Yocto Project releases: currently, the master branch and Jethro. To avoid build failures related to incompatibility between versions, Toaster only shows you the layers from the layer index that are available for your selected release. So, if you create a project in Toaster and select the Jethro release, you only see layers from the layer index that have a Jethro branch

http://layers.openembedded.org/layerindex/branch/jethro/layers/

If you create a project in Toaster and select the master release you only see layers from the layer index that have a master branch

http://layers.openembedded.org/layerindex/branch/master/layers/

This stops users from shooting themselves in the foot, as they often do, by mixing layers from different branches and trying to build them with the wrong bitbake versions.

Toaster also supports what we call the &quot;Local release&quot;. This is very much geared to people who set up Toaster locally in their development machines, and it allows them to work with the metadata and bitbake versions they have selected locally. The problem is that we don&apos;t know which branch they have checked out at any point in time, and we don&apos;t know if that branch is or not compatible with different metadata versions. Therefore, we cannot work out which layers from the layer index we can safely show you for building. 

If you are working with the &quot;local release&quot;, you must manually import into Toaster any additional layers you might want to build, and we expect you to understand that those layers must be compatible with the version of bitbake you are using to build. 

What are the alternatives to this behaviour?

1. Find out which branch you have checked out and try to match it to metadata branches from the layer index. If we find a match, we show you the layers. There is still a risk that your local branch has changes in it that cause incompatibilities with the corresponding upstream branch, even if the names match.

2. Show you all the layers from the layer index and the branches each of them provide, and you are responsible to select the branch that will build with your local version of bitbake. This is the solution advocated by Paul Eggleton, who agrees with providing sane defaults when it comes to layer versions, but also would like the power to override those defaults. We have features open for that: bug 6701 and bug 6640

I am inclined to close this, unless Henry is not happy about it and has some additional suggestions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59833</commentid>
    <comment_count>2</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2016-03-09 16:39:17 +0000</bug_when>
    <thetext>Henry - Please comment</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59873</commentid>
    <comment_count>3</comment_count>
    <who name="Henry Bruce">henry.bruce</who>
    <bug_when>2016-03-10 17:20:24 +0000</bug_when>
    <thetext>I was using the local release just for poky due to build instability introduced by meta-poky. I can see the possible problems of combining local release with layer index. I like Belen&apos;s option (2). Perhaps it could to go onto a feature backlog?

In the meantime documentation should be updated to state that selecting local relase prevents use of layer index.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59910</commentid>
    <comment_count>4</comment_count>
    <who name="Henry Bruce">henry.bruce</who>
    <bug_when>2016-03-11 18:46:26 +0000</bug_when>
    <thetext>As I have been thinking through the &quot;new&quot; Yocto workflow, I realized that developers using devtool  will be forced into using a &quot;local&quot; Yocto release when creating their layer. This means that devtool users will not be able to benefit from the layer index.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59940</commentid>
    <comment_count>5</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-03-14 14:34:33 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; As I have been thinking through the &quot;new&quot; Yocto workflow, I realized that
&gt; developers using devtool  will be forced into using a &quot;local&quot; Yocto release
&gt; when creating their layer. This means that devtool users will not be able to
&gt; benefit from the layer index.

This is good to know, and makes improving the layer management workflow a bit more urgent. I&apos;ve tentatively set the milestone of bug 6701 to 2.2

&gt; In the meantime documentation should be updated to state that selecting local &gt; relase prevents use of layer index.

I will send a patch for the Toaster manual.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59973</commentid>
    <comment_count>6</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-03-15 15:24:28 +0000</bug_when>
    <thetext>Patch submitted to the Toaster mailing list

https://lists.yoctoproject.org/pipermail/toaster/2016-March/004160.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60031</commentid>
    <comment_count>7</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-03-16 17:57:12 +0000</bug_when>
    <thetext>The explanation of the local release is now in the latest version of the manual

http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html#a-note-on-the-local-yocto-project-release

Marking this as resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61928</commentid>
    <comment_count>8</comment_count>
    <who name="Alexandru Roman">alexandru.costinx.roman</who>
    <bug_when>2016-05-04 12:46:21 +0000</bug_when>
    <thetext>Verified.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>