diff options
author | Yoann Congal <yoann.congal@smile.fr> | 2024-09-05 14:52:21 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-09-05 08:20:29 -0700 |
commit | 1f933b6936dbaaf74dc8daf6b09a6bd2655807ff (patch) | |
tree | 87801c57fd7fddd84217fd788debd255fdb59059 | |
parent | 9bdff5feb60994d4ed3a0123b9977c6c6643a242 (diff) | |
download | meta-openembedded-1f933b6936dbaaf74dc8daf6b09a6bd2655807ff.tar.gz |
polkit: fix build on sysvinit
Polkit unconditionally installs a systemd service, remove it in
do_install() on SysVinit systems to avoid "installed but not packaged
file" error.
Fixes this error:
ERROR: polkit-125-r0 do_package: QA Issue: polkit: Files/directories were installed but not shipped in any package:
/usr/lib/systemd
/usr/lib/systemd/system
/usr/lib/systemd/system/polkit.service
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
polkit: 3 installed and not shipped files. [installed-vs-shipped]
ERROR: polkit-125-r0 do_package: Fatal QA errors were found, failing task.
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-extended/polkit/polkit_125.bb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/polkit/polkit_125.bb b/meta-oe/recipes-extended/polkit/polkit_125.bb index 2405ed6034..a67aaf908f 100644 --- a/meta-oe/recipes-extended/polkit/polkit_125.bb +++ b/meta-oe/recipes-extended/polkit/polkit_125.bb | |||
@@ -55,6 +55,12 @@ do_install:append() { | |||
55 | chmod 700 ${D}/${sysconfdir}/polkit-1/rules.d | 55 | chmod 700 ${D}/${sysconfdir}/polkit-1/rules.d |
56 | chown polkitd:root ${D}/${sysconfdir}/polkit-1/rules.d | 56 | chown polkitd:root ${D}/${sysconfdir}/polkit-1/rules.d |
57 | fi | 57 | fi |
58 | |||
59 | # Polkit unconditionally installs a systemd service, remove it on SysVinit | ||
60 | # systems to avoid "installed but not packaged file" error. | ||
61 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | ||
62 | rm -r ${D}${libdir}/systemd | ||
63 | fi | ||
58 | } | 64 | } |
59 | 65 | ||
60 | FILES:${PN} += " \ | 66 | FILES:${PN} += " \ |