<?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>13562</bug_id>
          
          <creation_ts>2019-09-28 17:17:17 +0000</creation_ts>
          <short_desc>When using bitbake prior to 1.43.1 we get an error rather than &quot;bitbake too old&quot;</short_desc>
          <delta_ts>2019-10-02 19:43:16 +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>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>2.8 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tom Rini">tom.rini</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>akuster</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</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>85127</commentid>
    <comment_count>0</comment_count>
    <who name="Tom Rini">tom.rini</who>
    <bug_when>2019-09-28 17:17:17 +0000</bug_when>
    <thetext>When using current oe-core master and a version of bitbake older than BB_MIN_VERSION rather than getting the intended &quot;bitbake is too old, please upgrade&quot; type of message we get a parse error that starts with:
ERROR: Unable to parse Var &lt;OE_IMPORTED[:=]&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85128</commentid>
    <comment_count>1</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-09-29 16:31:45 +0000</bug_when>
    <thetext>I ran into a similar issue on system that had an old version of master sources for oe-core and bitbake.  I did a pull and then ran bitake core-image-minimal

ERROR: Unable to start bitbake server (None)
ERROR: Server log for this session (/home/build/builds/master/bitbake-cookerdaemon.log):
--- Starting bitbake server pid 2288 at 2019-09-29 15:40:58.186803 ---
ERROR: Unable to parse Var &lt;OE_IMPORTED[:=]&gt;
Traceback (most recent call last):
  File &quot;Var &lt;OE_IMPORTED[:=]&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/home/build/releases/master/poky/meta/classes/base.bbclass&quot;, line 33, in oe_import(d=&lt;bb.data_smart.DataSmart object at 0x7f02df1c9278&gt;):
         for toimport in oe.data.typed_value(&quot;OE_IMPORTS&quot;, d):
    &gt;        imported = __import__(toimport)
             inject(toimport.split(&quot;.&quot;, 1)[0], imported)
  File &quot;/home/build/releases/master/poky/meta/lib/oe/utils.py&quot;, line 489, in &lt;module&gt;:
     
    &gt;class ImageQAFailed(bb.build.FuncFailed):
         def __init__(self, description, name=None, logfile=None):
bb.data_smart.ExpansionError: Failure expanding variable OE_IMPORTED[:=], expression was ${@oe_import(d)} which triggered exception AttributeError: module &apos;bb.build&apos; has no attribute &apos;FuncFailed&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85131</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-09-30 15:58:19 +0000</bug_when>
    <thetext>This looks to be caused by the removal of bb.build.FuncFailed. We may need to add an exception handler and better error for this specifically.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85137</commentid>
    <comment_count>3</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-10-01 15:40:38 +0000</bug_when>
    <thetext>let me see if I can find a way to reproduce this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85138</commentid>
    <comment_count>4</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-10-01 15:51:39 +0000</bug_when>
    <thetext>Ok, if I checkout bitbake 1.42 top of branch 164c0df429fc9be771c54c241b17d7afb8849afc

and use a current oe-core I get this trace back.

 bitbake core-image-minimal
ERROR: Unable to start bitbake server (None)
ERROR: Server log for this session (/home/build/releases/master/openembedded-core/build/bitbake-cookerdaemon.log):
--- Starting bitbake server pid 18705 at 2019-10-01 15:47:58.181849 ---
ERROR: Unable to parse Var &lt;OE_IMPORTED[:=]&gt;
Traceback (most recent call last):
  File &quot;Var &lt;OE_IMPORTED[:=]&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/home/build/releases/master/openembedded-core/meta/classes/base.bbclass&quot;, line 35, in oe_import(d=&lt;bb.data_smart.DataSmart object at 0x7fbdd90914a8&gt;):
         for toimport in oe.data.typed_value(&quot;OE_IMPORTS&quot;, d):
    &gt;        imported = __import__(toimport)
             inject(toimport.split(&quot;.&quot;, 1)[0], imported)
  File &quot;/home/build/releases/master/openembedded-core/meta/lib/oe/sstatesig.py&quot;, line 260, in &lt;module&gt;:
     
    &gt;class SignatureGeneratorOEEquivHash(bb.siggen.SignatureGeneratorUniHashMixIn, SignatureGeneratorOEBasicHash):
         name = &quot;OEEquivHash&quot;
bb.data_smart.ExpansionError: Failure expanding variable OE_IMPORTED[:=], expression was ${@oe_import(d)} which triggered exception AttributeError: module &apos;bb.siggen&apos; has no attribute &apos;SignatureGeneratorUniHashMixIn&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85139</commentid>
    <comment_count>5</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-10-01 15:55:06 +0000</bug_when>
    <thetext>bitbake checked out @ 	cfeffb602dd5319f071cd6bcf84139ec77f2d170
build/utils: Drop bb.build.FuncFailed

I see what Tom is expecting
ERROR:  OE-core&apos;s config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Bitbake version 1.43.1 is required and version 1.43.0 was found</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85140</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-10-02 08:59:21 +0000</bug_when>
    <thetext>Ok, so the problem isn&apos;t bb.build.FuncFailed but is the unihash mixin changes. That helps.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85145</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-10-02 14:15:18 +0000</bug_when>
    <thetext>Patches out to allow the version test to trigger and add a new version for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85152</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-10-02 19:25:16 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=ed05d969ea4a6bb8df3956a621d7d3e94e6cb515

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=34c34b9a5782a132fc69f5fe1a76c5ca6909e5d5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85153</commentid>
    <comment_count>9</comment_count>
    <who name="Tom Rini">tom.rini</who>
    <bug_when>2019-10-02 19:33:38 +0000</bug_when>
    <thetext>Verified expected output myself now, moving to closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85154</commentid>
    <comment_count>10</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-10-02 19:43:16 +0000</bug_when>
    <thetext>thanks</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>