From 0f33c7391961edf5f62dafbacb612b9b40216f9d Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 10 Mar 2023 02:07:03 -0800 Subject: [PATCH] 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: 7582421fc3a711e5ed23add75ed49207e699c422) Signed-off-by: Khem Raj Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit 12808a4159835b67d8d53d32bc9135811701a779) Signed-off-by: Steve Sakoman Signed-off-by: Richard Purdie --- meta/classes/systemd.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass index 09ec52792d..c07332d5b6 100644 --- a/meta/classes/systemd.bbclass +++ b/meta/classes/systemd.bbclass @@ -146,6 +146,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'