<?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>12721</bug_id>
          
          <creation_ts>2018-04-30 17:18:33 +0000</creation_ts>
          <short_desc>USERADD_ERROR_DYNAMIC=&quot;error&quot; causes bitbake to fail to parse recipes.  =&quot;warn&quot; works.  Worked in morty, fails in pyro, rocko, sumo</short_desc>
          <delta_ts>2018-09-19 20:19:21 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>All</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.6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sue Wolber">susan_wolber</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>stephano</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>80456</commentid>
    <comment_count>0</comment_count>
    <who name="Sue Wolber">susan_wolber</who>
    <bug_when>2018-04-30 17:18:33 +0000</bug_when>
    <thetext>Originally seen in our custom BSP with &apos;rocko&apos; meta-* layers and bitbake &apos;1.36&apos;
Reproduced in poky branches pyro, rocko, sumo.
Worked fine in poky branch morty.

Issue seen with bitbake of any image (core-image-minimal, core-image-sato, etc), when you add the following to local.conf:

USERADD_ERROR_DYNAMIC = &quot;error&quot;
USERADDEXTENSION = &quot;useradd-staticids&quot;
USERADD_UID_TABLES = &quot;./passwd&quot;
USERADD_GID_TABLES = &quot;./group&quot;

Per Yocto manual  https://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-USERADD_ERROR_DYNAMIC

With or without the files &apos;group&apos; and &apos;passwd&apos; actually existing, bitbake will fail to parse random recipes - on poky usually &apos;dbus&apos; fails, on our custom BSP &amp; custom layers I see failures on seemingly-random recipe names.  

If you change the 
  USERADD_ERROR_DYNAMIC = &quot;error&quot;
to
  USERADD_ERROR_DYNAMIC = &quot;warn&quot;
then bitbake correctly parses recipes and correctly throws warnings about missing userIds and groupIds in the passwd/group files.

But with 
  USERADD_ERROR_DYNAMIC = &quot;error&quot;
bitbake fails to parse recipes.  Eg:

[tso_bldadm@AD.KEYSIGHT.COM@es-hpp-linux-build3 build.pyro]$ bitbake core-image-minimal 
Parsing recipes: 100% |##################################################################################################################################| Time: 0:00:14
Parsing of 831 .bb files complete (0 cached, 831 parsed). 1304 targets, 66 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES &apos;dbus&apos; (but /var/lib/jenkins/workspace/manual-poky/poky2/meta/recipes-core/glib-2.0/glib-2.0_2.50.3.bb RDEPENDS on or otherwise requires it)
ERROR: dbus was skipped: dbus - dbus: username messagebus does not have a static ID defined. Skipping it.
NOTE: Runtime target &apos;dbus&apos; is unbuildable, removing...
Missing or unbuildable dependency chain was: [&apos;dbus&apos;]
NOTE: Runtime target &apos;gnome-desktop-testing&apos; is unbuildable, removing...
Missing or unbuildable dependency chain was: [&apos;gnome-desktop-testing&apos;, &apos;glib-2.0&apos;, &apos;dbus&apos;]
NOTE: Runtime target &apos;shared-mime-info&apos; is unbuildable, removing...
Missing or unbuildable dependency chain was: [&apos;shared-mime-info&apos;, &apos;glib-2.0&apos;, &apos;dbus&apos;]
NOTE: Runtime target &apos;eudev&apos; is unbuildable, removing...
Missing or unbuildable dependency chain was: [&apos;eudev&apos;, &apos;glib-2.0&apos;, &apos;dbus&apos;]
NOTE: Runtime target &apos;eudev-dev&apos; is unbuildable, removing...
Missing or unbuildable dependency chain was: [&apos;eudev-dev&apos;, &apos;glib-2.0&apos;, &apos;dbus&apos;]
NOTE: Runtime target &apos;udev&apos; is unbuildable, removing...
Missing or unbuildable dependency chain was: [&apos;udev&apos;, &apos;glib-2.0&apos;, &apos;dbus&apos;]
NOTE: Runtime target &apos;packagegroup-core-boot&apos; is unbuildable, removing...
Missing or unbuildable dependency chain was: [&apos;packagegroup-core-boot&apos;, &apos;udev&apos;, &apos;glib-2.0&apos;, &apos;dbus&apos;]
ERROR: Required build target &apos;core-image-minimal&apos; has no buildable providers.
Missing or unbuildable dependency chain was: [&apos;core-image-minimal&apos;, &apos;packagegroup-core-boot&apos;, &apos;udev&apos;, &apos;glib-2.0&apos;, &apos;dbus&apos;]

Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81579</commentid>
    <comment_count>1</comment_count>
    <who name="Sue Wolber">susan_wolber</who>
    <bug_when>2018-09-19 20:19:21 +0000</bug_when>
    <thetext>Resolving by Submitter as NOT-a-bug.

After chatting with Bootlin (formerly known as Free Electrons) and re-testing...
I was 100% wrong.  I thought with valid &apos;group&apos; and &apos;passwd&apos; files, bitbake was throwing parse errors, but I was wrong.
So far as I can tell, with correct &apos;group&apos; and &apos;passwd&apos; files, bitbake and OE behave correctly from morty through sumo.
SORRY</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>