diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-03-10 02:07:03 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-25 23:00:14 +0000 |
commit | 8e560a0f4a2c646085395e5f70fe1aeb5297fc06 (patch) | |
tree | ea7a5005051012894234be8d1c67c96264b74e84 | |
parent | a870d77486247639a976b0ebaee8113961cbd423 (diff) | |
download | poky-8e560a0f4a2c646085395e5f70fe1aeb5297fc06.tar.gz |
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>
-rw-r--r-- | meta/classes-recipe/systemd.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes-recipe/systemd.bbclass b/meta/classes-recipe/systemd.bbclass index f6564c2b31..ce188a8113 100644 --- a/meta/classes-recipe/systemd.bbclass +++ b/meta/classes-recipe/systemd.bbclass | |||
@@ -152,6 +152,7 @@ python systemd_populate_packages() { | |||
152 | def systemd_check_services(): | 152 | def systemd_check_services(): |
153 | searchpaths = [oe.path.join(d.getVar("sysconfdir"), "systemd", "system"),] | 153 | searchpaths = [oe.path.join(d.getVar("sysconfdir"), "systemd", "system"),] |
154 | searchpaths.append(d.getVar("systemd_system_unitdir")) | 154 | searchpaths.append(d.getVar("systemd_system_unitdir")) |
155 | searchpaths.append(d.getVar("systemd_user_unitdir")) | ||
155 | systemd_packages = d.getVar('SYSTEMD_PACKAGES') | 156 | systemd_packages = d.getVar('SYSTEMD_PACKAGES') |
156 | 157 | ||
157 | keys = 'Also' | 158 | keys = 'Also' |