mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
systemd.bbclass: Add /usr/lib/systemd to searchpaths as well
Some packages like lirc places its unit files into $systemd_user_unitdir and also uses them in SYSTEMD_SERVICE list in recipe. This fails in do_package ERROR: Didn't find service unit 'lircmd.service', specified in SYSTEMD_SERVICE:lirc. here lircmd.service is installed in /usr/lib/systemd/system/lircmd.service (From OE-Core rev: 612e2cff28852d9d3dfc947ee07dbe4111748239) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 12808a4159835b67d8d53d32bc9135811701a779) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -152,6 +152,7 @@ python systemd_populate_packages() {
|
||||
def systemd_check_services():
|
||||
searchpaths = [oe.path.join(d.getVar("sysconfdir"), "systemd", "system"),]
|
||||
searchpaths.append(d.getVar("systemd_system_unitdir"))
|
||||
searchpaths.append(d.getVar("systemd_user_unitdir"))
|
||||
systemd_packages = d.getVar('SYSTEMD_PACKAGES')
|
||||
|
||||
keys = 'Also'
|
||||
|
||||
Reference in New Issue
Block a user