From b2486769a36a034896eb2e13826cf037c878859f Mon Sep 17 00:00:00 2001 From: Ricardo Salveti Date: Mon, 12 Oct 2026 18:25:51 +0000 Subject: [PATCH] polkit: keep the agent helper units in the main package Commit 3e423e21e5 ("polkit: enable the agent helper socket") enables polkit-agent-helper.socket from polkit, but since 03420389ca ("polkit: Add a separate package for polkit systemd service/dbus config") polkit-service comes first in PACKAGES and takes the whole systemd unit directory, so the socket is packaged there. Images that install polkit without polkit-service then fail in do_rootfs: Failed to enable unit: Unit polkit-agent-helper.socket does not exist Installing polkit-service as well does not help with rpm, as it depends on polkit, whose postinst then runs before the socket unit is installed. Only package polkit.service in polkit-service, so the agent helper units stay in polkit with polkit-agent-helper-1, as FILES:${PN} already intends. AI-Generated: Uses Claude Code Signed-off-by: Ricardo Salveti Signed-off-by: Khem Raj --- meta-oe/recipes-extended/polkit/polkit_127.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-oe/recipes-extended/polkit/polkit_127.bb b/meta-oe/recipes-extended/polkit/polkit_127.bb index 2089152826..acd4386354 100644 --- a/meta-oe/recipes-extended/polkit/polkit_127.bb +++ b/meta-oe/recipes-extended/polkit/polkit_127.bb @@ -48,7 +48,7 @@ SYSTEMD_SERVICE:${PN}-service = "${BPN}.service" PACKAGES =+ "${PN}-service" RDEPENDS:${PN}-service += "polkit" FILES:${PN}-service += " \ - ${systemd_system_unitdir} \ + ${systemd_system_unitdir}/polkit.service \ ${sysconfdir}/systemd/system/polkit-virtual-provider.service \ "