Re: [oe] [meta-oe 6/7] systemd.bbclass: automatically extend FILES_* for systemd packages

2012-02-15 Thread Andreas Müller
On Tue, Feb 14, 2012 at 5:22 PM, Otavio Salvador ota...@ossystems.com.br wrote: On Tue, Feb 14, 2012 at 14:09, Andreas Müller schnitzelt...@googlemail.comwrote: On Tue, Feb 14, 2012 at 1:51 PM, Otavio Salvador ota...@ossystems.com.br wrote: No; The @ is to allow multiple instance. Look at

Re: [oe] [meta-oe 6/7] systemd.bbclass: automatically extend FILES_* for systemd packages

2012-02-15 Thread Otavio Salvador
On Wed, Feb 15, 2012 at 10:31, Andreas Müller schnitzelt...@googlemail.comwrote: Another corner case I would like to understand: What is the role of in busybox syslog.service linking to dev/null. Within busybox itself it seems not referenced. To make it to use the .service file and not the

Re: [oe] [meta-oe 6/7] systemd.bbclass: automatically extend FILES_* for systemd packages

2012-02-15 Thread Otavio Salvador
On Wed, Feb 15, 2012 at 17:53, Andreas Müller schnitzelt...@googlemail.comwrote: For test I did with a bunch of recipes 1. build from scratch with unmodified sources 2. Applied sytemd-patches and the 'cleanup'-patches (removing obsolete systemd code in recipes) 3. build recipes again 4.

Re: [oe] [meta-oe 6/7] systemd.bbclass: automatically extend FILES_* for systemd packages

2012-02-15 Thread Martin Jansa
On Wed, Feb 15, 2012 at 05:55:56PM -0200, Otavio Salvador wrote: On Wed, Feb 15, 2012 at 17:53, Andreas Müller schnitzelt...@googlemail.comwrote: For test I did with a bunch of recipes 1. build from scratch with unmodified sources 2. Applied sytemd-patches and the 'cleanup'-patches

Re: [oe] [meta-oe 6/7] systemd.bbclass: automatically extend FILES_* for systemd packages

2012-02-15 Thread Andreas Müller
On Wed, Feb 15, 2012 at 8:55 PM, Otavio Salvador ota...@ossystems.com.br wrote: On Wed, Feb 15, 2012 at 17:53, Andreas Müller schnitzelt...@googlemail.comwrote: For test I did with a bunch of recipes 1. build from scratch with unmodified sources 2. Applied sytemd-patches and the

Re: [oe] [meta-oe 6/7] systemd.bbclass: automatically extend FILES_* for systemd packages

2012-02-15 Thread Andreas Müller
On Wed, Feb 15, 2012 at 9:07 PM, Andreas Müller schnitzelt...@googlemail.com wrote: On Wed, Feb 15, 2012 at 8:55 PM, Otavio Salvador ota...@ossystems.com.br wrote: On Wed, Feb 15, 2012 at 17:53, Andreas Müller schnitzelt...@googlemail.comwrote: For test I did with a bunch of recipes 1.

Re: [oe] [meta-oe 6/7] systemd.bbclass: automatically extend FILES_* for systemd packages

2012-02-15 Thread Andreas Müller
On Wed, Feb 15, 2012 at 9:18 PM, Andreas Müller schnitzelt...@googlemail.com wrote: On Wed, Feb 15, 2012 at 9:07 PM, Andreas Müller schnitzelt...@googlemail.com wrote: On Wed, Feb 15, 2012 at 8:55 PM, Otavio Salvador ota...@ossystems.com.br wrote: On Wed, Feb 15, 2012 at 17:53, Andreas Müller

Re: [oe] [meta-oe 6/7] systemd.bbclass: automatically extend FILES_* for systemd packages

2012-02-15 Thread Andreas Müller
On Wed, Feb 15, 2012 at 9:39 PM, Andreas Müller schnitzelt...@googlemail.com wrote: ../package/src/debug/ of course this must be ../package/usr/src/debug/ started a build from scratch with systemd patches... Andreas ___ Openembedded-devel mailing

Re: [oe] [meta-oe 6/7] systemd.bbclass: automatically extend FILES_* for systemd packages

2012-02-14 Thread Andreas Müller
On Mon, Feb 13, 2012 at 6:09 PM, Otavio Salvador ota...@ossystems.com.br wrote: On Mon, Feb 13, 2012 at 14:38, Andreas Müller schnitzelt...@googlemail.comwrote: systemd-systemctl-native Off list @Otavio: not boring but challenging... To reuse as much as possible: Is there a piece of code

Re: [oe] [meta-oe 6/7] systemd.bbclass: automatically extend FILES_* for systemd packages

2012-02-14 Thread Otavio Salvador
On Tue, Feb 14, 2012 at 10:42, Andreas Müller schnitzelt...@googlemail.comwrote: Currently I am testing the automatic parsing for different recipes. Following the 'After=' and 'WantedBy=' works fine but before sending out I would like to get some comments on the following

Re: [oe] [meta-oe 6/7] systemd.bbclass: automatically extend FILES_* for systemd packages

2012-02-14 Thread Andreas Müller
On Tue, Feb 14, 2012 at 1:51 PM, Otavio Salvador ota...@ossystems.com.br wrote: No; The @ is to allow multiple instance. Look at http://www.freedesktop.org/software/systemd/man/systemd.unit.html How about the old strategy for *@.service: If there is only one *-systemd package with one entry in

Re: [oe] [meta-oe 6/7] systemd.bbclass: automatically extend FILES_* for systemd packages

2012-02-14 Thread Otavio Salvador
On Tue, Feb 14, 2012 at 14:09, Andreas Müller schnitzelt...@googlemail.comwrote: On Tue, Feb 14, 2012 at 1:51 PM, Otavio Salvador ota...@ossystems.com.br wrote: No; The @ is to allow multiple instance. Look at http://www.freedesktop.org/software/systemd/man/systemd.unit.html How about the

Re: [oe] [meta-oe 6/7] systemd.bbclass: automatically extend FILES_* for systemd packages

2012-02-13 Thread Otavio Salvador
On Sun, Feb 12, 2012 at 20:15, Andreas Müller schnitzelt...@googlemail.comwrote: If there is one *-systemd package with one entry in SYSTEMD_SERVICE, the whole directory is installed - otherwise only the files found in SYSTEMD_SERVICE. If a recipe installs too much or something is missing, it

Re: [oe] [meta-oe 6/7] systemd.bbclass: automatically extend FILES_* for systemd packages

2012-02-13 Thread Andreas Müller
On Mon, Feb 13, 2012 at 11:42 AM, Otavio Salvador ota...@ossystems.com.br wrote: On Sun, Feb 12, 2012 at 20:15, Andreas Müller schnitzelt...@googlemail.comwrote: If there is one *-systemd package with one entry in SYSTEMD_SERVICE, the whole directory is installed - otherwise only the files

Re: [oe] [meta-oe 6/7] systemd.bbclass: automatically extend FILES_* for systemd packages

2012-02-13 Thread Otavio Salvador
On Mon, Feb 13, 2012 at 10:05, Andreas Müller schnitzelt...@googlemail.comwrote: If for example I put two .socket files, your algorithm will break. That's why I said you need to parse it. It is not that difficult as the logic is the same as the wrapper used in rootfs generation. Sorry -

Re: [oe] [meta-oe 6/7] systemd.bbclass: automatically extend FILES_* for systemd packages

2012-02-13 Thread Andreas Müller
On Mon, Feb 13, 2012 at 1:14 PM, Otavio Salvador ota...@ossystems.com.br wrote: On Mon, Feb 13, 2012 at 10:05, Andreas Müller schnitzelt...@googlemail.comwrote: If for example I put two .socket files, your algorithm will break. That's why I said you need to parse it. It is not that

Re: [oe] [meta-oe 6/7] systemd.bbclass: automatically extend FILES_* for systemd packages

2012-02-13 Thread Otavio Salvador
On Mon, Feb 13, 2012 at 14:38, Andreas Müller schnitzelt...@googlemail.comwrote: systemd-systemctl-native Off list @Otavio: not boring but challenging... To reuse as much as possible: Is there a piece of code showing me how to mix up shell/python code? Not that I am aware of but you can

Re: [oe] [meta-oe 6/7] systemd.bbclass: automatically extend FILES_* for systemd packages

2012-02-12 Thread Andreas Müller
On Sat, Feb 11, 2012 at 2:12 PM, Otavio Salvador ota...@ossystems.com.br wrote: On Sat, Feb 11, 2012 at 00:00, Andreas Müller schnitzelt...@googlemail.comwrote: In case SYSTEMD_SERVICE contains only one *.service file, the whole folder ${base_libdir}/systemd/system/ is added to FILES_*

[oe] [meta-oe 6/7] systemd.bbclass: automatically extend FILES_* for systemd packages

2012-02-10 Thread Andreas Müller
In case SYSTEMD_SERVICE contains only one *.service file, the whole folder ${base_libdir}/systemd/system/ is added to FILES_* otherwise only the *.service files found in SYSTEMD_SERVICE. Signed-off-by: Andreas Müller schnitzelt...@googlemail.com --- meta-oe/classes/systemd.bbclass | 16