<?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>11660</bug_id>
          
          <creation_ts>2017-06-14 02:23:16 +0000</creation_ts>
          <short_desc>build fail on change to command.py&apos; updateConfig()</short_desc>
          <delta_ts>2017-06-15 05:12:07 +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>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Reyna">david.reyna</reporter>
          <assigned_to name="David Reyna">david.reyna</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>stanciux.mihail</cc>
          
          <qa_contact name="Libertad">libertad.gonzalez.de.la.cruz</qa_contact>
          <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>74131</commentid>
    <comment_count>0</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2017-06-14 02:23:16 +0000</bug_when>
    <thetext>@@ -310,7 +261,8 @@
     def updateConfig(self, command, params):
         options = params[0]
         environment = params[1]
-        command.cooker.updateConfigOpts(options, environment)
+        cmdline = params[2]
+        command.cooker.updateConfigOpts(options, environment, cmdline)
     updateConfig.needconfig = False</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74132</commentid>
    <comment_count>1</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2017-06-14 02:30:05 +0000</bug_when>
    <thetext>The builds against master are failing because of a recent API change in the function &apos;updateConfig&apos; in the bitbake script &quot;command.py&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74182</commentid>
    <comment_count>2</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2017-06-15 05:12:07 +0000</bug_when>
    <thetext>It turns out that the problem was that the version of &apos;cookerdata.py&apos; in the local installation got out of sync (API change) with the latest version of &apos;cookerdata.py&apos; that got pulled down by Toaster into &quot;_toaster_clones&quot;. When the event handling got routed it jumped between the versions.

This is a known vulnerability when working with projects that derive from Master. We can consider version checks in the future to warn the Toaster manager of such changes. 


06:01:10 O: Traceback (most recent call last):
06:01:10 O:   File &quot;/home/usersetup/poky/bitbake/bin/bitbake&quot;, line 48, in &lt;module&gt;
06:01:10 O:     cookerdata.CookerConfiguration()))
06:01:10 O:   File &quot;/home/usersetup/poky/bitbake/lib/bb/main.py&quot;, line 452, in bitbake_main
06:01:10 O:     configParams)
06:01:10 O:   File &quot;/home/usersetup/poky/bitbake/lib/bb/ui/toasterui.py&quot;, line 176, in main
06:01:10 O:     params.updateToServer(server, os.environ.copy())
06:01:10 O:   File &quot;/home/usersetup/poky/bitbake/lib/bb/cookerdata.py&quot;, line 84, in updateToServer
06:01:10 O:     raise Exception(&quot;Unable to update the server configuration with local parameters: %s&quot; % error)
06:01:10 O: Exception: Unable to update the server configuration with local parameters: Traceback (most recent call last):
06:01:10 O:   File &quot;/workdir/_toaster_clones/_git___git.yoctoproject.org_poky_master/bitbake/lib/bb/command.py&quot;, line 81, in runCommand
06:01:10 O:     result = command_method(self, commandline)
06:01:10 O:   File &quot;/workdir/_toaster_clones/_git___git.yoctoproject.org_poky_master/bitbake/lib/bb/command.py&quot;, line 264, in updateConfig
06:01:10 O:     cmdline = params[2]
06:01:10 O: IndexError: list index out of range</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>