From 578945f00b7c3bbe2cb403c12e6c0fdf82fabd95 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 19 Apr 2024 18:39:21 -0700 Subject: 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 --- meta-oe/recipes-graphics/ydotool/ydotool_git.bb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta-oe/recipes-graphics/ydotool/ydotool_git.bb b/meta-oe/recipes-graphics/ydotool/ydotool_git.bb index c1427457d..ce43db531 100644 --- a/meta-oe/recipes-graphics/ydotool/ydotool_git.bb +++ b/meta-oe/recipes-graphics/ydotool/ydotool_git.bb @@ -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} + fi +} SYSTEMD_SERVICE:${PN} = "ydotoold.service" SYSTEMD_AUTO_ENABLE = "disable" -- cgit v1.2.3-54-g00ecf