Message ID | 20240905093005.2731956-2-yoann.congal@smile.fr |
---|---|
State | New |
Headers | show |
Series | [meta-oe,v2,1/2] polkit: Switch PAM files to common-* | expand |
diff --git a/meta-oe/recipes-extended/polkit/polkit_125.bb b/meta-oe/recipes-extended/polkit/polkit_125.bb index 54a2b3636f..348722a561 100644 --- a/meta-oe/recipes-extended/polkit/polkit_125.bb +++ b/meta-oe/recipes-extended/polkit/polkit_125.bb @@ -53,6 +53,12 @@ do_install:append() { chmod 700 ${D}/${sysconfdir}/polkit-1/rules.d chown polkitd:root ${D}/${sysconfdir}/polkit-1/rules.d fi + + # Polkit unconditionally installs a systemd service, remove it on SysVinit + # systems to avoid "installed but not packaged file" error. + if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then + rm -r ${D}${libdir}/systemd + fi } FILES:${PN} += " \