<?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>4309</bug_id>
          
          <creation_ts>2013-04-16 10:49:18 +0000</creation_ts>
          <short_desc>Unpackaged file warnings for systemd units when systemd disabled</short_desc>
          <delta_ts>2013-08-05 09:48: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>OE-Core</product>
          <component>core</component>
          <version>1.5</version>
          <rep_platform>All</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>minor</bug_severity>
          <target_milestone>1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Radu Moisan">radu.moisan</assigned_to>
          <cc>Martin.Jansa</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.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>32217</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-04-16 10:49:18 +0000</bug_when>
    <thetext>If a recipe inherits systemd, installs a systemd unit into ${systemd_unitdir} and doesn&apos;t explicitly mention it in FILES and you aren&apos;t using systemd (i.e. you don&apos;t have systemd in DISTRO_FEATURES) you&apos;ll get an unpackaged file warning during do_package, because the code in systemd.bbclass that normally adds ${systemd_unitdir} to FILES is explicitly not called. This issue can be seen in various recipes in meta-networking e.g. ypbind-mt.

I suspect these unit files ought to just be deleted at the end of do_install by systemd.bbclass if systemd is not in DISTRO_FEATURES.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32273</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2013-04-17 09:19:35 +0000</bug_when>
    <thetext>This seems like better solution
http://lists.linuxtogo.org/pipermail/openembedded-core/2013-February/036169.html

Remove duplicated do_installs and install systemd files by shared chunk of code in systemd.bbclass (like it was in meta-systemd) only when systemd is in DISTRO_FEATURES and remove them if they are installed by upstream and systemd isn&apos;t in DISTRO_FEATURES</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35368</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-08-05 09:48:12 +0000</bug_when>
    <thetext>Fix merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=67864ca79da08df752487a3a4e1a975546da123d</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>