<?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>1963</bug_id>
          
          <creation_ts>2012-02-06 20:53:13 +0000</creation_ts>
          <short_desc>Consider adopting systemd interfaces in Poky core OS distro configuration</short_desc>
          <delta_ts>2013-04-11 11:16:48 +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>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock - Disabled">josh</reporter>
          <assigned_to name="Radu Moisan">radu.moisan</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>alexandru.damian</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>18521</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-02-06 20:53:13 +0000</bug_when>
    <thetext>Systemd is blazing a trail and defining various interfaces to expose OS data to applications which are gradually being adopted by other systems.

The systemd maintainers are doing a decent job of documenting the interfaces[1], known consumers and which other systems are supporting them as well as whether they are (easily) re-implementable outside of systemd.

It&apos;s likely that these interfaces will become de-facto API as other Linux OS&apos;s adopt either systemd (increasingly likely) or implement the interfaces themselves and we should consider getting in early and adopting the ones which make sense also.

OS&apos;s implementing one or more of the API interfaces outside of systemd include: o Arch Linux
o Debian 
o Ubuntu

Known consumers of the API interfaces include:
o GNOME
o udev
o X11

Examples of D-Bus API interfaces covered are:
o hostnamed[2]
o localed[3]
o timedated[4]

Examples of file API interfaces covered are:
o /etc/machine-info[5]
o /etc/os-release[6]
o /etc/locale.conf[7]

Implementing these interfaces will provide:
a) better compatibility with Yocto built images which include systemd
b) support for upstream software projects which adopt these systemd interfaces
c) a modern, leading edge, Linux OS

This bug is a tracker bug for myself to consider the interfaces in turn and whether they should be adopted and supported in the Poky distribution configuration.

1. http://www.freedesktop.org/wiki/Software/systemd/InterfacePortabilityAndStabilityChart
2. http://www.freedesktop.org/wiki/Software/systemd/hostnamed
3. http://www.freedesktop.org/wiki/Software/systemd/localed
4. http://www.freedesktop.org/wiki/Software/systemd/timedated
5. http://0pointer.de/public/systemd-man/machine-info.html
6. http://0pointer.de/public/systemd-man/os-release.html
7. http://0pointer.de/public/systemd-man/locale.conf.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18522</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-02-06 20:55:24 +0000</bug_when>
    <thetext>The resulting software and configuration files from this bug could likely form a lightweight, portable, embedded-centric implementation of the systemd API and provide a systemd compatible VIRTUAL_RUNTIME-systemd-api or similar.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21737</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-05-30 14:33:09 +0000</bug_when>
    <thetext>Those daemons, whilst in the systemd tree, don&apos;t actually depend on systemd.  I&apos;d be a big fan of packaging them up separately so they can be used without using systemd.

(disclosure: I really want hostnamed for guacamayo)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21741</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2012-05-30 15:05:13 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Those daemons, whilst in the systemd tree, don&apos;t actually depend on systemd.
&gt; I&apos;d be a big fan of packaging them up separately so they can be used without
&gt; using systemd.

That sounds like the right approach to me. What about the file interfaces? Do they get generated by systemd&apos;s build system? I&apos;d say we want to think about how those are packaged too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21744</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-05-30 15:46:07 +0000</bug_when>
    <thetext>I suspect that the initial files are assumed to come from &quot;the distribution&quot; somehow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29328</commentid>
    <comment_count>5</comment_count>
    <who name="Radu Moisan">radu.moisan</who>
    <bug_when>2013-01-30 08:55:42 +0000</bug_when>
    <thetext>Since systemd is now integrated in master I guess we can close this one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31903</commentid>
    <comment_count>6</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-04-11 11:15:25 +0000</bug_when>
    <thetext>master:95b71d2b03a3a6dc5d32a7d6a84ec3420f39aa61


core-image-minimal and core-image-sato could be built with systemd.
Test case: https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=549</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31904</commentid>
    <comment_count>7</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-04-11 11:16:48 +0000</bug_when>
    <thetext>verified.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>