<?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>4486</bug_id>
          
          <creation_ts>2013-05-10 15:46:57 +0000</creation_ts>
          <short_desc>Traceback when inheriting useradd but not setting USERADD_PARAM or GROUPADD_PARAM</short_desc>
          <delta_ts>2013-08-05 09:46:04 +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>1.5</version>
          <rep_platform>All</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>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Ionut Radu">ionutx.radu</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</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>33050</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-05-10 15:46:57 +0000</bug_when>
    <thetext>If you inherit useradd and add a package to USERADD_PACKAGES but don&apos;t set USERADD_PARAM or GROUPADD_PARAM, you get this:

--------- snip ----------
ERROR: Unable to parse /home/paul/poky/meta-oe/meta-oe/recipes-support/mysql/mysql5_5.1.40.bb                                                                                 | ETA:  --:--:--
Traceback (most recent call last):
  File &quot;/home/paul/poky/poky/bitbake/lib/bb/parse/ast.py&quot;, line 335, in finalize(fn=&apos;/home/paul/poky/meta-oe/meta-oe/recipes-support/mysql/mysql5_5.1.40.bb&apos;, d=&lt;bb.data_smart.DataSmart object at 0x152f910&gt;, variant=None):
             code.append(&quot;%s(d)&quot; % funcname)
    &gt;    bb.utils.better_exec(&quot;\n&quot;.join(code), {&quot;d&quot;: d})
         bb.data.update_data(d)
  File &quot;/home/paul/poky/poky/bitbake/lib/bb/utils.py&quot;, line 343, in better_exec(code=&lt;code object &lt;module&gt; at 0xfa0ad50, file &quot;&lt;code&gt;&quot;, line 1&gt;, context={&apos;d&apos;: &lt;bb.data_smart.DataSmart object at 0x152f910&gt;}, text=&apos;__anon_635__home_paul_poky_poky_meta_classes_base_bbclass(d)\n__anon_227__home_paul_poky_poky_meta_classes_package_bbclass(d)\n__anon_1134__home_paul_poky_poky_meta_classes_package_rpm_bbclass(d)\n__anon_917__home_paul_poky_poky_meta_classes_insane_bbclass(d)\n__anon_20__home_paul_poky_poky_meta_classes_debian_bbclass(d)\n__anon_27__home_paul_poky_poky_meta_classes_devshell_bbclass(d)\n__anon_76__home_paul_poky_poky_meta_classes_sstate_bbclass(d)\n__anon_124__home_paul_poky_poky_meta_classes_siteinfo_bbclass(d)\n__anon_53__home_paul_poky_poky_meta_classes_update_rc_d_bbclass(d)\n__anon_168__home_paul_poky_poky_meta_classes_useradd_bbclass(d)&apos;, realfile=&apos;&lt;code&gt;&apos;):
         try:
    &gt;        exec(code, _context, context)
         except Exception as e:
  File &quot;&lt;code&gt;&quot;, line 10, in &lt;module&gt;
  File &quot;__anon_168__home_paul_poky_poky_meta_classes_useradd_bbclass&quot;, line 2, in __anon_168__home_paul_poky_poky_meta_classes_useradd_bbclass(d=&lt;bb.data_smart.DataSmart object at 0x152f910&gt;)
  File &quot;useradd.bbclass&quot;, line 9, in update_useradd_after_parse(d=&lt;bb.data_smart.DataSmart object at 0x152f910&gt;)
FuncFailed: Function failed: /home/paul/poky/meta-oe/meta-oe/recipes-support/mysql/mysql5_5.1.40.bb inherits useradd but doesn&apos;t set USERADD_PARAM or GROUPADD_PARAM for package mysql5-server
--------- snip ----------

We only need to see the error here and not the traceback which is rather difficult to read. It could be that raising bb.build.FuncFailed is the wrong thing to be doing here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34667</commentid>
    <comment_count>1</comment_count>
    <who name="Ionut Radu">ionutx.radu</who>
    <bug_when>2013-07-18 12:54:25 +0000</bug_when>
    <thetext>I replaced bb.build.FuncFailed with bb.fatal</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34669</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-07-18 13:09:53 +0000</bug_when>
    <thetext>OK, but the patch hasn&apos;t been merged to master yet, so this bug needs to remain open until it has been.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35367</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-08-05 09:46:04 +0000</bug_when>
    <thetext>Fix merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=3e3ab8e02da7f56a87759acbb3e51ccb76448854</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>