<?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>11960</bug_id>
          
          <creation_ts>2017-08-21 13:07:23 +0000</creation_ts>
          <short_desc>groupadd fails on ubuntu 16.04</short_desc>
          <delta_ts>2017-11-07 11:25:53 +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>2.3.1</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>2.5 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tony Riederer">ariede</reporter>
          <assigned_to name="Maxin B. John">maxin.john</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>mikko.ylinen</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</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>76027</commentid>
    <comment_count>0</comment_count>
    <who name="Tony Riederer">ariede</who>
    <bug_when>2017-08-21 13:07:23 +0000</bug_when>
    <thetext>Building core-image-sato on ubuntu 16.04 per quick start instructions.
https://www.yoctoproject.org/docs/2.3/yocto-project-qs/yocto-project-qs.html

All packages which inherit a dependency on shadow-native via useradd.bbclass fail groupadd. 

The groupadd command is not present in the packages&apos; recipe-sysroot-native so the host version is being used and is somehow incompatible.

Adding shadow-native (provider of groupadd) explicitly to the DEPENDS for the failed package causes the correct groupadd to be added to recipe-sysroot-native

Build Configuration:
BB_VERSION        = &quot;1.34.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;universal&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.3.1&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-poky         
meta-yocto-bsp    = &quot;pyro:4a39979c8d1e560fa54240e99734a651dfbaa63a&quot;

Initialising tasks: 100% |##############################################################################################################################################################################| Time: 0:00:11
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: glib-2.0-1_2.50.3-r0 do_prepare_recipe_sysroot: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: &apos;exec_python_func() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
     0001:
 *** 0002:extend_recipe_sysroot(d)
     0003:
File: &apos;/home/riedert/poky/meta/classes/staging.bbclass&apos;, lineno: 603, function: extend_recipe_sysroot
     0599:        else:
     0600:            staging_processfixme(fixme[f], multilibs[f].getVar(&quot;RECIPE_SYSROOT&quot;), recipesysroot, recipesysrootnative, d)
     0601:
     0602:    for p in postinsts:
 *** 0603:        subprocess.check_output(p, shell=True)
     0604:
     0605:    for dep in manifests:
     0606:        c = setscenedeps[dep][0]
     0607:        os.symlink(manifests[dep], depdir + &quot;/&quot; + c + &quot;.complete&quot;)
File: &apos;/usr/lib/python3.5/subprocess.py&apos;, lineno: 626, function: check_output
     0622:        # empty string. That is maintained here for backwards compatibility.
     0623:        kwargs[&apos;input&apos;] = &apos;&apos; if kwargs.get(&apos;universal_newlines&apos;, False) else b&apos;&apos;
     0624:
     0625:    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
 *** 0626:               **kwargs).stdout
     0627:
     0628:
     0629:class CompletedProcess(object):
     0630:    &quot;&quot;&quot;A process that has finished running.
File: &apos;/usr/lib/python3.5/subprocess.py&apos;, lineno: 708, function: run
     0704:            raise
     0705:        retcode = process.poll()
     0706:        if check and retcode:
     0707:            raise CalledProcessError(retcode, process.args,
 *** 0708:                                     output=stdout, stderr=stderr)
     0709:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0710:
     0711:
     0712:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command &apos;/home/user/poky/build/tmp/work/i586-poky-linux/glib-2.0/1_2.50.3-r0/recipe-sysroot/usr/bin/postinst-useradd-dbus&apos; returned non-zero exit status 1

Subprocess output:
/usr/sbin/useradd
Running groupadd commands...
NOTE: dbus: Performing groupadd with [--root /home/user/poky/build/tmp/work/i586-poky-linux/glib-2.0/1_2.50.3-r0/recipe-sysroot -r netdev]
ERROR: dbus: groupadd command did not succeed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76683</commentid>
    <comment_count>1</comment_count>
    <who name="Tony Riederer">ariede</who>
    <bug_when>2017-09-08 12:25:11 +0000</bug_when>
    <thetext>It looks like the dependency is being filtered out in sstate.bbclass setscene_depvalid().

# This is due to the [depends] in useradd.bbclass complicating matters
# The logic *is* reversed here due to the way hard setscene dependencies are injected
if (taskdependees[task][1] == &apos;do_package&apos; or taskdependees[task][1] == &apos;do_populate_sysroot&apos;) and taskdependees[dep][0].endswith((&apos;shadow-native&apos;, &apos;shadow-sysroot&apos;, &apos;base-passwd&apos;, &apos;pseudo-native&apos;)) and taskdependees[dep][1] == &apos;do_populate_sysroot&apos;:
    continue

https://github.com/openembedded/openembedded-core/blob/2f95c71ba17a6d68d3805efe82097c10b6740244/meta/classes/sstate.bbclass#L949</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76760</commentid>
    <comment_count>2</comment_count>
    <who name="Tony Riederer">ariede</who>
    <bug_when>2017-09-12 13:28:45 +0000</bug_when>
    <thetext>The actual filter that is causing the problem is entitled &quot;# Native/cross tools depended upon by target sysroot are not needed&quot;

https://github.com/openembedded/openembedded-core/blob/2f95c71ba17a6d68d3805efe82097c10b6740244/meta/classes/sstate.bbclass#L971

The problem arises from postinst-* scripts which are added to the recipe sysroot from DEPENDS packages (in this case dbus). Said scripts may(do) require native tools which will be filtered out. 

Removing this filter &apos;fixed&apos; my problem. Not sure what the wider implications are.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76783</commentid>
    <comment_count>3</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2017-09-13 12:06:15 +0000</bug_when>
    <thetext>Managed to  reproduce the issue in Ubuntu 16.04 in the first attempt. Strangely, it didn&apos;t appear in the second time (bitbake dbus after removing sstate-cache and tmp directories).

Currently investigating it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76791</commentid>
    <comment_count>4</comment_count>
    <who name="Tony Riederer">ariede</who>
    <bug_when>2017-09-13 15:03:28 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Managed to  reproduce the issue in Ubuntu 16.04 in the first attempt.
&gt; Strangely, it didn&apos;t appear in the second time (bitbake dbus after removing
&gt; sstate-cache and tmp directories).
&gt; 
&gt; Currently investigating it.

In the description it is failing glib-2.0 do_prepare_recipe_sysroot when running postinst-useradd-dbus inherited from the dbus sysroot. &apos;bitbake glib-2.0&apos; would fail in the same way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76827</commentid>
    <comment_count>5</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2017-09-14 11:37:43 +0000</bug_when>
    <thetext>Since ptest is enabled in DISTRO_FEATURES, dbus gets included as a run-time dependency to glib-2.0.

As another check, please add 
DEPENDS += &quot;shadow-native&quot;
to glib-2.0 recipe and see if you could see the same error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76828</commentid>
    <comment_count>6</comment_count>
    <who name="Tony Riederer">ariede</who>
    <bug_when>2017-09-14 12:07:16 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Since ptest is enabled in DISTRO_FEATURES, dbus gets included as a run-time
&gt; dependency to glib-2.0.
&gt; 
&gt; As another check, please add 
&gt; DEPENDS += &quot;shadow-native&quot;
&gt; to glib-2.0 recipe and see if you could see the same error.

From initial description: 

&quot;Adding shadow-native (provider of groupadd) explicitly to the DEPENDS for the failed package causes the correct groupadd to be added to recipe-sysroot-native&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76834</commentid>
    <comment_count>7</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2017-09-14 14:42:57 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; Since ptest is enabled in DISTRO_FEATURES, dbus gets included as a run-time
&gt; &gt; dependency to glib-2.0.
&gt; &gt; 
&gt; &gt; As another check, please add 
&gt; &gt; DEPENDS += &quot;shadow-native&quot;
&gt; &gt; to glib-2.0 recipe and see if you could see the same error.
&gt; 
&gt; From initial description: 
&gt; 
&gt; &quot;Adding shadow-native (provider of groupadd) explicitly to the DEPENDS for
&gt; the failed package causes the correct groupadd to be added to
&gt; recipe-sysroot-native&quot;

My mistake!

I meant, it is a known limitation (need to be fixed)
https://bugzilla.yoctoproject.org/show_bug.cgi?id=8078</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76967</commentid>
    <comment_count>8</comment_count>
    <who name="Mikko Ylinen">mikko.ylinen</who>
    <bug_when>2017-09-19 14:21:26 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Managed to  reproduce the issue in Ubuntu 16.04 in the first attempt.
&gt; Strangely, it didn&apos;t appear in the second time (bitbake dbus after removing
&gt; sstate-cache and tmp directories).
&gt; 
&gt; Currently investigating it.


We started seeing this too and it triggers when the scripts are no longer coming from an sstate (the recent useradd.bbclass changes in master trigger the rebuild). I&apos;m seeing it with &apos;bitbake -c sdk_depends &lt;image&gt;&apos; (when building esdk). (but not with &apos;bitbake &lt;image&gt;&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76981</commentid>
    <comment_count>9</comment_count>
      <attachid>4014</attachid>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2017-09-20 15:21:56 +0000</bug_when>
    <thetext>Created attachment 4014
fix

Please check if this patch fixes the error in these cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76993</commentid>
    <comment_count>10</comment_count>
    <who name="Tony Riederer">ariede</who>
    <bug_when>2017-09-20 20:47:54 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; Created attachment 4014 [details]
&gt; fix
&gt; 
&gt; Please check if this patch fixes the error in these cases.

Yes, that works for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77003</commentid>
    <comment_count>11</comment_count>
    <who name="Mikko Ylinen">mikko.ylinen</who>
    <bug_when>2017-09-21 05:17:37 +0000</bug_when>
    <thetext>(In reply to comment #10)
&gt; (In reply to comment #9)
&gt; &gt; Created attachment 4014 [details]
&gt; &gt; fix
&gt; &gt; 
&gt; &gt; Please check if this patch fixes the error in these cases.
&gt; 
&gt; Yes, that works for me.

It won&apos;t help here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77009</commentid>
    <comment_count>12</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2017-09-21 08:35:24 +0000</bug_when>
    <thetext>
(In reply to comment #11)
&gt; (In reply to comment #10)
&gt; &gt; (In reply to comment #9)
&gt; &gt; &gt; Created attachment 4014 [details]
&gt; &gt; &gt; fix
&gt; &gt; &gt; 
&gt; &gt; &gt; Please check if this patch fixes the error in these cases.
&gt; &gt; 
&gt; &gt; Yes, that works for me.
&gt; 
&gt; It won&apos;t help here.

Just attempted to reproduce the issue in Ubuntu 16.04 using the following command:
# bitbake -c sdk_depends core-image-minimal

It didn&apos;t fail. Could you share the steps to follow here ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77010</commentid>
    <comment_count>13</comment_count>
    <who name="Mikko Ylinen">mikko.ylinen</who>
    <bug_when>2017-09-21 09:26:54 +0000</bug_when>
    <thetext>(In reply to comment #12)
&gt; (In reply to comment #11)
&gt; &gt; (In reply to comment #10)
&gt; &gt; &gt; (In reply to comment #9)
&gt; &gt; &gt; &gt; Created attachment 4014 [details]
&gt; &gt; &gt; &gt; fix
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Please check if this patch fixes the error in these cases.
&gt; &gt; &gt; 
&gt; &gt; &gt; Yes, that works for me.
&gt; &gt; 
&gt; &gt; It won&apos;t help here.
&gt; 
&gt; Just attempted to reproduce the issue in Ubuntu 16.04 using the following
&gt; command:
&gt; # bitbake -c sdk_depends core-image-minimal
&gt; 
&gt; It didn&apos;t fail. Could you share the steps to follow here ?

sstate plays a role (and it&apos;s not distro related btw). everything worked for us until useradd.bbclass changed recently in OE-core. If I revert 0c4259dd3c74d81f20b87417cecb1e636365ce10 (oe-core commit) I get everything from sstate again. With that commit included setscene is not valid and the error triggers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77014</commentid>
    <comment_count>14</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2017-09-21 10:35:19 +0000</bug_when>
    <thetext>Yes, that commit has the potential to break the sstate. Did we do a clean build (run a cleansstate or remove sstate-cache directory) after that change ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77221</commentid>
    <comment_count>15</comment_count>
    <who name="Mikko Ylinen">mikko.ylinen</who>
    <bug_when>2017-09-29 05:44:58 +0000</bug_when>
    <thetext>(In reply to comment #14)
&gt; Yes, that commit has the potential to break the sstate. Did we do a clean
&gt; build (run a cleansstate or remove sstate-cache directory) after that change
&gt; ?

sstate *must* (i.e., do_populate_sysroot_setscene must run for components providing postinst-useradd-* scripts) be used to trigger the problem.

I ran bisect and it gave me:

0c4259dd3c74d81f20b87417cecb1e636365ce10 is the first bad commit
commit 0c4259dd3c74d81f20b87417cecb1e636365ce10
Author: Peter Kjellerstedt &lt;peter.kjellerstedt@axis.com&gt;
Date:   Fri Sep 15 16:48:59 2017 +0200

    useradd.bbclass: Unify writing of script file in useradd_sysroot_sstate()

    There were two identical code blocks for writing the
    postinst-useradd-${PN} scripts. This combines them into one.

    Signed-off-by: Peter Kjellerstedt &lt;peter.kjellerstedt@axis.com&gt;
    Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77223</commentid>
    <comment_count>16</comment_count>
    <who name="Mikko Ylinen">mikko.ylinen</who>
    <bug_when>2017-09-29 07:07:10 +0000</bug_when>
    <thetext>(In reply to comment #15)
&gt; (In reply to comment #14)
&gt; &gt; Yes, that commit has the potential to break the sstate. Did we do a clean
&gt; &gt; build (run a cleansstate or remove sstate-cache directory) after that change
&gt; &gt; ?
&gt; 
&gt; sstate *must* (i.e., do_populate_sysroot_setscene must run for components
&gt; providing postinst-useradd-* scripts) be used to trigger the problem.
&gt; 

Note: the sstate must also come from a mirror where certain paths are different. In case of a failure, the scripts run on my local environment have, e.g., PSEUDO_LOCALSTATEDIR pointing to a path on the CI machine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77231</commentid>
    <comment_count>17</comment_count>
    <who name="Tony Riederer">ariede</who>
    <bug_when>2017-09-29 14:39:56 +0000</bug_when>
    <thetext>(In reply to comment #16)
&gt; (In reply to comment #15)
&gt; &gt; (In reply to comment #14)
&gt; &gt; &gt; Yes, that commit has the potential to break the sstate. Did we do a clean
&gt; &gt; &gt; build (run a cleansstate or remove sstate-cache directory) after that change
&gt; &gt; &gt; ?
&gt; &gt; 
&gt; &gt; sstate *must* (i.e., do_populate_sysroot_setscene must run for components
&gt; &gt; providing postinst-useradd-* scripts) be used to trigger the problem.
&gt; &gt; 
&gt; 
&gt; Note: the sstate must also come from a mirror where certain paths are
&gt; different. In case of a failure, the scripts run on my local environment
&gt; have, e.g., PSEUDO_LOCALSTATEDIR pointing to a path on the CI machine.

(In reply to comment #15)
&gt; (In reply to comment #14)
&gt; &gt; Yes, that commit has the potential to break the sstate. Did we do a clean
&gt; &gt; build (run a cleansstate or remove sstate-cache directory) after that change
&gt; &gt; ?
&gt; 
&gt; sstate *must* (i.e., do_populate_sysroot_setscene must run for components
&gt; providing postinst-useradd-* scripts) be used to trigger the problem.
&gt; 
&gt; I ran bisect and it gave me:
&gt; 
&gt; 0c4259dd3c74d81f20b87417cecb1e636365ce10 is the first bad commit
&gt; commit 0c4259dd3c74d81f20b87417cecb1e636365ce10
&gt; Author: Peter Kjellerstedt &lt;peter.kjellerstedt@axis.com&gt;
&gt; Date:   Fri Sep 15 16:48:59 2017 +0200
&gt; 
&gt;     useradd.bbclass: Unify writing of script file in useradd_sysroot_sstate()
&gt; 
&gt;     There were two identical code blocks for writing the
&gt;     postinst-useradd-${PN} scripts. This combines them into one.
&gt; 
&gt;     Signed-off-by: Peter Kjellerstedt &lt;peter.kjellerstedt@axis.com&gt;
&gt;     Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;

That patch looks incorrect. It&apos;s intent was apparently to remove the duplicate blocks without affection the functionality, but the implementation removes the code from prepare_recipe_sysroot block. This seems like a different issue. Perhaps it needs a seperate bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77256</commentid>
    <comment_count>18</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-10-01 20:26:32 +0000</bug_when>
    <thetext>(In reply to comment #17)
&gt; That patch looks incorrect. It&apos;s intent was apparently to remove the
&gt; duplicate blocks without affection the functionality, but the implementation
&gt; removes the code from prepare_recipe_sysroot block.

It removes it yes, but then by virtue of scriptfile being set with the added &quot;if scriptfile:&quot; it will create the file in the block underneath which is identical to that which was removed. At the moment I suspect the reason this is appears to be the cause is that it was simply the last time the signatures changed in a way that triggers the issue. The underlying cause is likely elsewhere.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77300</commentid>
    <comment_count>19</comment_count>
    <who name="Tony Riederer">ariede</who>
    <bug_when>2017-10-03 12:24:53 +0000</bug_when>
    <thetext>(In reply to comment #18)
&gt; (In reply to comment #17)
&gt; &gt; That patch looks incorrect. It&apos;s intent was apparently to remove the
&gt; &gt; duplicate blocks without affection the functionality, but the implementation
&gt; &gt; removes the code from prepare_recipe_sysroot block.
&gt; 
&gt; It removes it yes, but then by virtue of scriptfile being set with the added
&gt; &quot;if scriptfile:&quot; it will create the file in the block underneath which is
&gt; identical to that which was removed. At the moment I suspect the reason this
&gt; is appears to be the cause is that it was simply the last time the
&gt; signatures changed in a way that triggers the issue. The underlying cause is
&gt; likely elsewhere.

Sorry, I misread the patch. 

(In reply to comment #18)
&gt; (In reply to comment #17)
&gt; &gt; That patch looks incorrect. It&apos;s intent was apparently to remove the
&gt; &gt; duplicate blocks without affection the functionality, but the implementation
&gt; &gt; removes the code from prepare_recipe_sysroot block.
&gt; 
&gt; It removes it yes, but then by virtue of scriptfile being set with the added
&gt; &quot;if scriptfile:&quot; it will create the file in the block underneath which is
&gt; identical to that which was removed. At the moment I suspect the reason this
&gt; is appears to be the cause is that it was simply the last time the
&gt; signatures changed in a way that triggers the issue. The underlying cause is
&gt; likely elsewhere.

It looks bb.build.exec_func(&quot;useradd_sysroot&quot;, d) will be run before useradd_sysroot is created (part of the moved block). 

https://github.com/openembedded/openembedded-core/blob/master/meta/classes/useradd.bbclass#L148</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77538</commentid>
    <comment_count>20</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2017-10-12 08:13:48 +0000</bug_when>
    <thetext>Fix for the first part was sent to oe-core:
http://lists.openembedded.org/pipermail/openembedded-core/2017-October/143288.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78017</commentid>
    <comment_count>21</comment_count>
    <who name="Maxin B. John">maxin.john</who>
    <bug_when>2017-11-07 11:25:53 +0000</bug_when>
    <thetext>Fix for the reported bug is available in repo:
https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=06178f64eebdd5cdce4bb8b81f79b4d552af6c0a</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4014</attachid>
            <date>2017-09-20 15:21:56 +0000</date>
            <delta_ts>2017-09-20 15:21:56 +0000</delta_ts>
            <desc>fix</desc>
            <filename>0001-sstate.bbclass-provide-an-exception-for-useradd-scen.patch</filename>
            <type>text/plain</type>
            <size>1398</size>
            <attacher name="Maxin B. John">maxin.john</attacher>
            
              <data encoding="base64">RnJvbSAzNmM3NWUzNDhjZDViYjNjZmYyNDI3ODM1NTBiOTI1NjIzNDkyMjk3IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiAiTWF4aW4gQi4gSm9obiIgPG1heGluLmpvaG5AaW50ZWwuY29t
PgpEYXRlOiBXZWQsIDIwIFNlcCAyMDE3IDE4OjA1OjQ5ICswMzAwClN1YmplY3Q6IFtQQVRDSF0g
c3N0YXRlLmJiY2xhc3M6IHByb3ZpZGUgYW4gZXhjZXB0aW9uIGZvciB1c2VyYWRkIHNjZW5hcmlv
CgpQYWNrYWdlcywgd2hpY2ggZGVwZW5kIG9uIHVzZXJzL2dyb3VwcyBjcmVhdGVkIGZyb20gb3Ro
ZXIgcGFja2FnZXMsCm5lZWRzICJzaGFkb3ctbmF0aXZlIiBhcyBhIGJ1aWxkIHRpbWUgZGVwZW5k
ZW5jeS4gU28sIGFkZCBhbiBleGNlcHRpb24KdG8gdGhlICJzaGFkb3ctbmF0aXZlIiBmcm9tIG90
aGVyd2lzZSBkaXNjYXJkZWQgbmF0aXZlL2Nyb3NzIHRvb2xzCmRlcGVuZGVuY3kuCgpGaXhlcyBb
WU9DVE8gIzExOTYwXQoKU2lnbmVkLW9mZi1ieTogTWF4aW4gQi4gSm9obiA8bWF4aW4uam9obkBp
bnRlbC5jb20+Ci0tLQogbWV0YS9jbGFzc2VzL3NzdGF0ZS5iYmNsYXNzIHwgMyArKy0KIDEgZmls
ZSBjaGFuZ2VkLCAyIGluc2VydGlvbnMoKyksIDEgZGVsZXRpb24oLSkKCmRpZmYgLS1naXQgYS9t
ZXRhL2NsYXNzZXMvc3N0YXRlLmJiY2xhc3MgYi9tZXRhL2NsYXNzZXMvc3N0YXRlLmJiY2xhc3MK
aW5kZXggMmE1NDk5My4uZTMwZmJlMSAxMDA2NDQKLS0tIGEvbWV0YS9jbGFzc2VzL3NzdGF0ZS5i
YmNsYXNzCisrKyBiL21ldGEvY2xhc3Nlcy9zc3RhdGUuYmJjbGFzcwpAQCAtOTY3LDcgKzk2Nyw4
IEBAIGRlZiBzZXRzY2VuZV9kZXB2YWxpZCh0YXNrLCB0YXNrZGVwZW5kZWVzLCBub3RuZWVkZWQs
IGQsIGxvZz1Ob25lKToKICAgICAgICAgICAgIGlmIGlzTmF0aXZlQ3Jvc3ModGFza2RlcGVuZGVl
c1tkZXBdWzBdKToKICAgICAgICAgICAgICAgICByZXR1cm4gRmFsc2UKICAgICAgICAgICAgICMg
TmF0aXZlL2Nyb3NzIHRvb2xzIGRlcGVuZGVkIHVwb24gYnkgdGFyZ2V0IHN5c3Jvb3QgYXJlIG5v
dCBuZWVkZWQKLSAgICAgICAgICAgIGlmIGlzTmF0aXZlQ3Jvc3ModGFza2RlcGVuZGVlc1t0YXNr
XVswXSk6CisgICAgICAgICAgICAjIEFkZCBhbiBleGNlcHRpb24gZm9yIHNoYWRvdy1uYXRpdmUg
YXMgcmVxdWlyZWQgYnkgdXNlcmFkZC5iYmNsYXNzCisgICAgICAgICAgICBpZiBpc05hdGl2ZUNy
b3NzKHRhc2tkZXBlbmRlZXNbdGFza11bMF0pIGFuZCB0YXNrZGVwZW5kZWVzW3Rhc2tdWzBdICE9
ICdzaGFkb3ctbmF0aXZlJzoKICAgICAgICAgICAgICAgICBjb250aW51ZQogICAgICAgICAgICAg
IyBUYXJnZXQgcG9wdWxhdGVfc3lzcm9vdCBuZWVkIHRoZWlyIGRlcGVuZGVuY2llcwogICAgICAg
ICAgICAgcmV0dXJuIEZhbHNlCi0tIAoyLjQuMAoK
</data>

          </attachment>
      

    </bug>

</bugzilla>