<?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>8759</bug_id>
          
          <creation_ts>2015-12-03 21:58:05 +0000</creation_ts>
          <short_desc>useradd recipes don&apos;t re-create accounts in sysroot after base-passwd rebuilds</short_desc>
          <delta_ts>2015-12-08 23:35:02 +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>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>7724</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Haris Okanovic">haris.okanovic</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>57018</commentid>
    <comment_count>0</comment_count>
    <who name="Haris Okanovic">haris.okanovic</who>
    <bug_when>2015-12-03 21:58:05 +0000</bug_when>
    <thetext>Recipes using useradd.bbclass to create new user and group accounts in
STAGING_DIR_TARGET (the target sysroot) don&apos;t re-create their accounts
when they rebuild after a clean base-passwd rebuild. A rebuild of
base-passwd resets /etc/passwd and /etc/group in the sysroot, but
bitbake doesn&apos;t seem to propagate this change up to dependent recipes
like cronie, which adds more accounts to these files. So if cronie
rebuilds after a clean base-passwd build, the sysroot isn&apos;t updated with
cronie accounts.

This can fail other downstream recipes which expect cronie&apos;s crontab
group to be there by depending on cronie.

Reproduction steps, MACHINE=x64:

bitbake base-passwd cronie
grep crontab tmp-glibc/sysroots/x64/etc/group   --&gt; contains a crontab group, as expected
bitbake -c cleanall base-passwd
bitbake base-passwd
grep crontab tmp-glibc/sysroots/x64/etc/group   --&gt; missing crontab group, as expected
bitbake cronie
grep crontab tmp-glibc/sysroots/x64/etc/group   --&gt; still missing crontab group

Workaround:

bitbake -c cleanall cronie
bitbake cronie
grep crontab tmp-glibc/sysroots/x64/etc/group   --&gt; crontab group is back

The difference between the second and third builds of cronie appears to
be an sstate-cache hit, which doesn&apos;t update the sysroot with cronie
accounts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57138</commentid>
    <comment_count>1</comment_count>
    <who name="Haris Okanovic">haris.okanovic</who>
    <bug_when>2015-12-08 23:35:02 +0000</bug_when>
    <thetext>This is a dup of Yocto bug 7724. It&apos;s almost the same reproduction case as well, but uses contrived recipes instead of cronie.

*** This bug has been marked as a duplicate of bug 7724 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>