mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
ydotool: Do not package systemd unit files on non-systemd distros
Fixes ERROR: ydotool-1.0.4+git-r0 do_package: QA Issue: ydotool: Files/directories were installed but not shipped in any package: /usr/lib /usr/lib/systemd /usr/lib/systemd/user /usr/lib/systemd/user/ydotoold.service Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -16,5 +16,11 @@ EXTRA_OECMAKE = "\
|
||||
-DBUILD_DOCS=OFF \
|
||||
"
|
||||
|
||||
do_install:append() {
|
||||
if ! ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
||||
rm -rf ${D}${systemd_user_unitdir}
|
||||
rmdir ${D}${nonarch_libdir}/systemd ${D}${nonarch_libdir}
|
||||
fi
|
||||
}
|
||||
SYSTEMD_SERVICE:${PN} = "ydotoold.service"
|
||||
SYSTEMD_AUTO_ENABLE = "disable"
|
||||
|
||||
Reference in New Issue
Block a user