<?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>6633</bug_id>
          
          <creation_ts>2014-08-18 08:48:10 +0000</creation_ts>
          <short_desc>Problem in useradd-staticids.bbclass</short_desc>
          <delta_ts>2014-09-23 12:10:12 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.6.1</version>
          <rep_platform>x86</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.6.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>fabrice.coulon</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.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>45152</commentid>
    <comment_count>0</comment_count>
      <attachid>2089</attachid>
    <who name="">fabrice.coulon</who>
    <bug_when>2014-08-18 08:48:10 +0000</bug_when>
    <thetext>Created attachment 2089
patch file produced with diff -u

When using the useradd-staticids.bbclass under poky-daisy-11.0.1/meta/classes, I get an error &quot;&lt;username&gt; - &lt;username&gt;: Username  does not have a static uid defined.&quot;

But &lt;usersname&gt; was correctly defined in my UID table. There was a problem with the regular expression for parsing parameters, it was sometimes returning an empty string. 

I have fixed this by skipping empty strings in the attached patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45329</commentid>
    <comment_count>1</comment_count>
    <who name="">fabrice.coulon</who>
    <bug_when>2014-08-29 08:44:56 +0000</bug_when>
    <thetext>The bug was found in poky-daisy-11.0.1/meta/classes/useradd-staticids.bbclass

I don&apos;t really get where the version 1.6.1 or milestone 1.6.2 is coming from but we would really appreciate if somebody could make this fix available on master and not just in an old maintenance release of poky.

I will send a patch from master in a separate email to the Yocto mailing list asap.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45763</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-09-23 12:10:12 +0000</bug_when>
    <thetext>Fix merged into master and daisy, thanks! To make it into an older release, the fix needs to be applied to master first btw.

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=b02da021b122d969c8b22a1181c7cc3fb8250379
http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=daisy&amp;id=a4d8015687cf9ddd6ef563e29cf840698f81c099</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>2089</attachid>
            <date>2014-08-18 08:48:10 +0000</date>
            <delta_ts>2014-08-18 08:48:10 +0000</delta_ts>
            <desc>patch file produced with diff -u</desc>
            <filename>useradd-staticids.bbclass.patch</filename>
            <type>text/plain</type>
            <size>1015</size>
            <attacher>fabrice.coulon</attacher>
            
              <data encoding="base64">LS0tIHVzZXJhZGQtc3RhdGljaWRzLmJiY2xhc3Mub3JnCTIwMTQtMDgtMTggMTA6MjI6MjguNjE5
NjgwNDE0ICswMjAwCisrKyB1c2VyYWRkLXN0YXRpY2lkcy5iYmNsYXNzCTIwMTQtMDgtMTggMTA6
MjY6NTUuODMxNjczNzU2ICswMjAwCkBAIC01OCw3ICs1OCw5IEBACiAKICAgICAgICAgbmV3cGFy
YW1zID0gW10KICAgICAgICAgZm9yIHBhcmFtIGluIHJlLnNwbGl0KCcnJ1sgXHRdKjtbIFx0XSoo
Pz0oPzpbXiciXXwnW14nXSonfCJbXiJdKiIpKiQpJycnLCBwYXJhbXMpOgotICAgICAgICAgICAg
cGFyYW09cGFyYW0uc3RyaXAoKQorICAgICAgICAgICAgcGFyYW0gPSBwYXJhbS5zdHJpcCgpCisg
ICAgICAgICAgICBpZiBub3QgcGFyYW06CisgICAgICAgICAgICAgICAgY29udGludWUKICAgICAg
ICAgICAgIHRyeToKICAgICAgICAgICAgICAgICB1YWFyZ3MgPSBwYXJzZXIucGFyc2VfYXJncyhy
ZS5zcGxpdCgnJydbIFx0XSooPz0oPzpbXiciXXwnW14nXSonfCJbXiJdKiIpKiQpJycnLCBwYXJh
bSkpCiAgICAgICAgICAgICBleGNlcHQ6CkBAIC0xOTQsNyArMTk2LDkgQEAKIAogICAgICAgICBu
ZXdwYXJhbXMgPSBbXQogICAgICAgICBmb3IgcGFyYW0gaW4gcmUuc3BsaXQoJycnWyBcdF0qO1sg
XHRdKig/PSg/OlteJyJdfCdbXiddKid8IlteIl0qIikqJCknJycsIHBhcmFtcyk6Ci0gICAgICAg
ICAgICBwYXJhbT1wYXJhbS5zdHJpcCgpCisgICAgICAgICAgICBwYXJhbSA9IHBhcmFtLnN0cmlw
KCkKKyAgICAgICAgICAgIGlmIG5vdCBwYXJhbToKKyAgICAgICAgICAgICAgICBjb250aW51ZQog
ICAgICAgICAgICAgdHJ5OgogICAgICAgICAgICAgICAgICMgSWYgd2UncmUgcHJvY2Vzc2luZyBt
dWx0aXBsZSBsaW5lcywgd2UgY291bGQgaGF2ZSBsZWZ0IG92ZXIgdmFsdWVzIGhlcmUuLi4KICAg
ICAgICAgICAgICAgICBnYWFyZ3MgPSBwYXJzZXIucGFyc2VfYXJncyhyZS5zcGxpdCgnJydbIFx0
XSooPz0oPzpbXiciXXwnW14nXSonfCJbXiJdKiIpKiQpJycnLCBwYXJhbSkpCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>