<?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>9144</bug_id>
          
          <creation_ts>2016-02-19 08:43:40 +0000</creation_ts>
          <short_desc>os-release is not formatted as specified in standard</short_desc>
          <delta_ts>2016-03-21 00:52:52 +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>unspecified</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>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gatis Paeglis">gatis.paeglis</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>59254</commentid>
    <comment_count>0</comment_count>
    <who name="Gatis Paeglis">gatis.paeglis</who>
    <bug_when>2016-02-19 08:43:40 +0000</bug_when>
    <thetext>os-release spec: https://www.freedesktop.org/software/systemd/man/os-release.html

&quot;Variable assignment values must be enclosed in double or single quotes if they include spaces, semicolons or other special characters outside of A–Z, a–z, 0–9.&quot;

So one line needs to be changed in os-release.bb
From:  f.write(&apos;{0}={1}\n&apos;.format(field, value))
To:    f.write(&apos;{0}=&quot;{1}&quot;\n&apos;.format(field, value))

Some tools might fail to read the file properly. Dracut for example prints warnings when parsing os-release file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59315</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-02-21 20:11:03 +0000</bug_when>
    <thetext>This has already been fixed in master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4b29c802857e84d50b869c9f9f6bfdff002b15fa

You haven&apos;t specified the version you&apos;re using but I would assume it&apos;s a stable release; perhaps we can backport it if you let us know.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59361</commentid>
    <comment_count>2</comment_count>
    <who name="Gatis Paeglis">gatis.paeglis</who>
    <bug_when>2016-02-23 08:09:13 +0000</bug_when>
    <thetext>Backporting to jethro branch would be great. Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59447</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-02-24 20:30:56 +0000</bug_when>
    <thetext>FYI I&apos;ve sent out the backport for review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60178</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-03-21 00:52:52 +0000</bug_when>
    <thetext>Just to follow up on this, FYI the backport got merged to the jethro branch a week or so ago:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=jethro&amp;id=6e32be7c7b19b649e5cac8407650979aae65ef26</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>