<?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>5989</bug_id>
          
          <creation_ts>2014-03-17 15:31:18 +0000</creation_ts>
          <short_desc>Malformed string error on extra parameter</short_desc>
          <delta_ts>2014-03-26 08:52: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>Hob</product>
          <component>hob</component>
          <version>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</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>1.6 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lucian Musat">georgex.l.musat</reporter>
          <assigned_to name="Marius Avram">marius.avram</assigned_to>
          <cc>belen.barros.pena</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>valentin.popa</cc>
          
          
          <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>41330</commentid>
    <comment_count>0</comment_count>
    <who name="Lucian Musat">georgex.l.musat</who>
    <bug_when>2014-03-17 15:31:18 +0000</bug_when>
    <thetext>STATUS: IDLE
BUILD: 1.6_M4.rc1:1960f6b2ecbb793b40ebc9aed25c8f9cb7884c9a
ENVIRONMENT: Ubuntu 13.10 x86_64
STEPS TO REPRODUCE: 
  
launch hob

click &quot;Settings&quot;-&gt;&quot;Others&quot;, add extra paramters as following for libx11

####
PREFERRED_PROVIDER_virtual/libx11 = &quot;libx11-diet&quot;
####


select one &quot;Machine&quot;, for example, qemux86

choose one &quot;Base image&quot;, for example, core-image-sato


build the recipe, libx11 and check if only libx11 is built out


EXPECTED OUTCOME: 
  
 User could set extra parameters in &quot;Settings&quot;-&gt;&quot;Others&quot;.

Actual outcome:

Hob throws and error like this:

Traceback (most recent call last):
  File &quot;/home/lucian/work/m4-rc1/poky/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py&quot;, line 560, in settings_button_clicked_cb
    self.builder.reparse_post_adv_settings()
  File &quot;/home/lucian/work/m4-rc1/poky/bitbake/lib/bb/ui/crumbs/builder.py&quot;, line 1308, in reparse_post_adv_settings
    self.populate_recipe_package_info_async()
  File &quot;/home/lucian/work/m4-rc1/poky/bitbake/lib/bb/ui/crumbs/builder.py&quot;, line 547, in populate_recipe_package_info_async
    self.set_user_config()
  File &quot;/home/lucian/work/m4-rc1/poky/bitbake/lib/bb/ui/crumbs/builder.py&quot;, line 723, in set_user_config
    self.set_user_config_extra()
  File &quot;/home/lucian/work/m4-rc1/poky/bitbake/lib/bb/ui/crumbs/builder.py&quot;, line 707, in set_user_config_extra
    self.handler.set_extra_config(self.configuration.extra_setting)
  File &quot;/home/lucian/work/m4-rc1/poky/bitbake/lib/bb/ui/crumbs/hobeventhandler.py&quot;, line 359, in set_extra_config
    old_extra_setting = ast.literal_eval(self.runCommand([&quot;getVariable&quot;, &quot;EXTRA_SETTING&quot;]) or &quot;{}&quot;)
  File &quot;/usr/lib/python2.7/ast.py&quot;, line 80, in literal_eval
    return _convert(node_or_string)
  File &quot;/usr/lib/python2.7/ast.py&quot;, line 79, in _convert
    raise ValueError(&apos;malformed string&apos;)
ValueError: malformed string


The error seems to be about the line added by it in local.conf:

#added by hob
EXTRA_SETTING = &quot;{&apos;PREFERRED_PROVIDER_virtual/libx11&apos;: &apos;libx11-diet&apos;}&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41695</commentid>
    <comment_count>1</comment_count>
    <who name="Marius Avram">marius.avram</who>
    <bug_when>2014-03-25 13:52:43 +0000</bug_when>
    <thetext>Solution merged on poky:master, commit 41ed4123a687f77a2042cf50d89652639075f869</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41741</commentid>
    <comment_count>2</comment_count>
    <who name="Lucian Musat">georgex.l.musat</who>
    <bug_when>2014-03-26 08:52:29 +0000</bug_when>
    <thetext>Verified.
No more malformed string error when adding extra parameters.

Cheers</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>