<div dir="ltr"><div><div>Hi Khem,<br><br></div>This series of patches have as an objective to improve systemd support in OE, specifically improve support for user services.<br><br></div>If you want more information, you can follow the discussion from last patch version I sent and also the yocto bug report:<br><a href="https://bugzilla.yoctoproject.org/show_bug.cgi?id=7801">https://bugzilla.yoctoproject.org/show_bug.cgi?id=7801</a><br><a href="http://patches.openembedded.org/patch/97291/">http://patches.openembedded.org/patch/97291/</a><br><br><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">Pau Espin Pedrol<br>mail/jabber: <a href="mailto:pespin.shar@gmail.com" target="_blank">pespin.shar@gmail.com</a><br><a href="http://blog.espeweb.net" target="_blank">http://blog.espeweb.net</a><br></div></div>
<br><div class="gmail_quote">2015-07-25 3:26 GMT+02:00 Khem Raj <span dir="ltr">&lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fri, Jul 24, 2015 at 7:02 AM, Pau Espin Pedrol &lt;<a href="mailto:pau.espin@aweurope.be">pau.espin@aweurope.be</a>&gt; wrote:<br>
&gt; Signed-off-by: Pau Espin Pedrol &lt;<a href="mailto:pau.espin@aweurope.be">pau.espin@aweurope.be</a>&gt;<br>
&gt; ---<br>
&gt;  meta/classes/systemd.bbclass | 9 ++++-----<br>
&gt;  1 file changed, 4 insertions(+), 5 deletions(-)<br>
&gt;<br>
&gt; diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass<br>
&gt; index cfe1eb5..46e72c7 100644<br>
&gt; --- a/meta/classes/systemd.bbclass<br>
&gt; +++ b/meta/classes/systemd.bbclass<br>
&gt; @@ -136,8 +136,7 @@ python systemd_populate_packages() {<br>
&gt;      # Check service-files and call systemd_add_files_and_parse for each entry<br>
&gt;      def systemd_check_services():<br>
&gt;          searchpaths = [oe.path.join(d.getVar(&quot;sysconfdir&quot;, True), &quot;systemd&quot;, &quot;system&quot;),]<br>
&gt; -        searchpaths.append(oe.path.join(d.getVar(&quot;nonarch_base_libdir&quot;, True), &quot;systemd&quot;, &quot;system&quot;))<br>
&gt; -        searchpaths.append(oe.path.join(d.getVar(&quot;exec_prefix&quot;, True), d.getVar(&quot;nonarch_base_libdir&quot;, True), &quot;systemd&quot;, &quot;system&quot;))<br>
&gt; +        searchpaths.append(d.getVar(&quot;systemd_system_unitdir&quot;, True))<br>
&gt;          systemd_packages = d.getVar(&#39;SYSTEMD_PACKAGES&#39;, True)<br>
&gt;<br>
&gt;          keys = &#39;Also&#39;<br>
&gt; @@ -185,10 +184,10 @@ python rm_sysvinit_initddir (){<br>
&gt;      if bb.utils.contains(&#39;DISTRO_FEATURES&#39;, &#39;systemd&#39;, True, False, d) and \<br>
&gt;          not bb.utils.contains(&#39;DISTRO_FEATURES&#39;, &#39;sysvinit&#39;, True, False, d) and \<br>
&gt;          os.path.exists(sysv_initddir):<br>
&gt; -        systemd_unitdir = oe.path.join(d.getVar(&quot;D&quot;, True), d.getVar(&#39;systemd_unitdir&#39;, True), &quot;system&quot;)<br>
&gt; +        systemd_system_unitdir = oe.path.join(d.getVar(&quot;D&quot;, True), d.getVar(&#39;systemd_system_unitdir&#39;, True))<br>
&gt;<br>
&gt; -        # If systemd_unitdir contains anything, delete sysv_initddir<br>
&gt; -        if (os.path.exists(systemd_unitdir) and os.listdir(systemd_unitdir)):<br>
&gt; +        # If systemd_system_unitdir contains anything, delete sysv_initddir<br>
&gt; +        if (os.path.exists(systemd_system_unitdir) and os.listdir(systemd_system_unitdir)):<br>
&gt;              shutil.rmtree(sysv_initddir)<br>
&gt;  }<br>
&gt;  do_install[postfuncs] += &quot;rm_sysvinit_initddir &quot;<br>
<br>
</div></div>what does this patch solve ?<br>
<span class="HOEnZb"><font color="#888888">--<br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</font></span></blockquote></div><br></div>