<?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>9185</bug_id>
          
          <creation_ts>2016-02-29 19:58:22 +0000</creation_ts>
          <short_desc>Build fails when importing layer</short_desc>
          <delta_ts>2016-03-09 08:52:24 +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>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Henry Bruce">henry.bruce</reporter>
          <assigned_to name="Toaster default assignee">toaster</assigned_to>
          <cc>belen.barros.pena</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>michael.g.wood</cc>
    
    <cc>stanciux.mihail</cc>
          
          <qa_contact name="Mihail Stanciu">stanciux.mihail</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59546</commentid>
    <comment_count>0</comment_count>
      <attachid>3010</attachid>
    <who name="Henry Bruce">henry.bruce</who>
    <bug_when>2016-02-29 19:58:22 +0000</bug_when>
    <thetext>Created attachment 3010
bblayers.conf

Steps to reproduce:
1. Create new project (qemu)
2. Import layer
3. Build image included in layer

Expected result:
Successful build

Observed result:
Bitbake failure:

Error executing a python function in exec_python_func() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: &apos;exec_python_func() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
     0001:
 *** 0002:poky_update_bblayersconf(d)
     0003:
File: &apos;/media/md126p1/yocto/hbruce/master/toaster/_toaster_clones/_git___git.yoctoproject.org_meta-yocto_master/meta-yocto/../meta-poky/classes/poky-sanity.bbclass&apos;, lineno: 8, function: poky_update_bblayersconf
     0004:    current_version = int(d.getVar(&apos;POKY_BBLAYERS_CONF_VERSION&apos;, True) or -1)
     0005:    latest_version = int(d.getVar(&apos;REQUIRED_POKY_BBLAYERS_CONF_VERSION&apos;, True) or -1)
     0006:
     0007:    # No version transitions here yet
 *** 0008:    raise NotImplementedError(&quot;You need to update bblayers.conf manually for this version transision&quot;)
     0009:}
     0010:
     0011:# Prepend to ensure our function runs before the OE-Core one
     0012:BBLAYERS_CONF_UPDATE_FUNCS =+ &quot;conf/bblayers.conf:POKY_BBLAYERS_CONF_VERSION:REQUIRED_POKY_BBLAYERS_CONF_VERSION:poky_update_bblayersconf&quot;
Exception: NotImplementedError: You need to update bblayers.conf manually for this version transision

bblayers.conf is attached</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59575</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Wood">michael.g.wood</who>
    <bug_when>2016-03-01 11:52:38 +0000</bug_when>
    <thetext>Thanks for the report, it looks like you are using master.

It appears to be due to the meta-yocto -&gt; meta-poky rename and some old state being left behind. I see in your bblayers.conf that you have a layer in your project called meta-yocto, you will need to update your toaster by running lsupdates (layer source update) to get the new meta-poky layer.

# Stop toaster
michael@minos:~/poky/build$ source toaster stop

# Update the database to get the new meta-poky layer
michael@minos:~/poky/build$ ../bitbake/lib/toaster/manage.py lsupdates

# Start toaster
michael@minos:~/poky/build$ source toaster start

Then remove meta-yocto from your project and add the new layer meta-poky.

If all else fails you can reset toaster (this will lose all project data) by stopping toaster, delete build/conf directory, delete build/toaster.sqlite, source oe-init-build-env, and source toaster start

If you want more stability then poky master is probably not for you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59597</commentid>
    <comment_count>2</comment_count>
    <who name="Henry Bruce">henry.bruce</who>
    <bug_when>2016-03-01 17:21:07 +0000</bug_when>
    <thetext>Michael, many thanks for looking into this. I missed the meta-poky addition to poky. I think I&apos;ll got for your reset option.

I&apos;m using master as jethro does not build with toaster (bug 8958).
I&apos;m getting up to speed with toaster right now, what poky branch or tag do you I advise I use?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59620</commentid>
    <comment_count>3</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-03-02 10:21:56 +0000</bug_when>
    <thetext>You could use the Toaster released with Jethro, which builds Jethro and Fido.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59801</commentid>
    <comment_count>4</comment_count>
    <who name="Henry Bruce">henry.bruce</who>
    <bug_when>2016-03-08 19:21:34 +0000</bug_when>
    <thetext>I&apos;d prefer to keep working with master so I have access to the latest toaster features and don&apos;t ask for some thing that&apos;s already there. Also another set of eyes of the latest code is a good thing. If there&apos;s a specific poky revision you&apos;d like me to use, let me know.

I&apos;ve switched to working with the local build which keeps things simple.

I think you can close this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59821</commentid>
    <comment_count>5</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-03-09 08:52:24 +0000</bug_when>
    <thetext>As per the last comment. The meta-yocto to meta-poky rename should not be causing trouble any more.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>3010</attachid>
            <date>2016-02-29 19:58:22 +0000</date>
            <delta_ts>2016-02-29 19:58:22 +0000</delta_ts>
            <desc>bblayers.conf</desc>
            <filename>bblayers.conf</filename>
            <type>application/octet-stream</type>
            <size>1412</size>
            <attacher name="Henry Bru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