[OE-core] [OE-Core][PATCH] systemd.bbclass: Introduce do_install_append and use systemd unitdir

Khem Raj raj.khem at gmail.com
Thu Feb 14 02:23:58 UTC 2013


On Wed, Feb 13, 2013 at 9:52 AM, Phil Blundell <pb at pbcl.net> wrote:
> On Wed, 2013-02-13 at 00:55 +0100, Andreas Müller wrote:
>> Copying similar code in in tons of recipes is easier to maintain?
>
> If the code that needs to go in the "tons" of recipes is just:
>
> do_install_append() {
>         install -m 644 ${WORKDIR}/my.service ${D}${systemd_unitdir}/system
> }
>
> then yes, this is easier to maintain than a mechanism that magically
> fishes out files from the workdir and installs them for itself.  As
> Richard mentioned, we have previous experience with this in the form of
> binconfig (and there have been others in the past) and this sort of
> thing has universally turned out to be a maintenance headache after a
> while.
>
> There's even a comment in the code you quoted:
>
>>> +     # ensure installing systemd-files only (e.g not avahi *.service)
>
> which suggests that some poor soul has previously found that it was
> installing things it oughtn't to have done.
>

I have dropped the idea of having append and taken the pain to add the append to
bbappends I think as systemd gets adopted widely I think the packages themselves
will start providing systemd support and then we have to start
dropping them one by one
so if they are per recipe then its easier.

> p.
>
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core




More information about the Openembedded-core mailing list