Re: [PATCH] systemd.bbclass: Introduce do_install_append and use systemd unitdir

Burton, Ross
2013-02-12T21:21:33Z

On 12 February 2013 17:42, Khem Raj <raj.khem@gmail.com> wrote:
> systemd always uses /lib and /usr/lib to store unit files
> so using libdir and base_libdir is incorrect. It will work
> where libdir is usr/lib and base_libdir is /lib but wont work
> when say its /lib64

That's interesting, wasn't aware of that. Why doesn't systemd respect
the configure options?

> Additionally introduce the install append from meta-oe
> lot of recipe appends in meta-systemd depend on that

This was removed on purpose because it should never be used. It was
used in meta-systemd because the service files in SRC_URI had
hard-coded /usr/bin, /usr/sbin, etc. Hard-coding these paths is
wrong, you'll need e.g. run a service.in through a
s/@sbindir@/${sbindir} and if you're doing this you can just do that
in do_install_append() and drop it directly into ${D}.

Radu's work at merging the rest of the changes in meta-systemd to
oe-core does this, for example:

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=rmoisan/systemd-ross&id=08d9095b31955eca862d6702dddeaf155ac8c987

Ross