diff options
author | Khem Raj <raj.khem@gmail.com> | 2024-04-19 18:39:21 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-04-21 10:52:51 -0700 |
commit | 6819f825caf750b4deac5d8dda1b81f3380615be (patch) | |
tree | a1005be1165d021c5fdbec768926e7bab4fb2257 | |
parent | 1ab631cf2358dbb7c46556dd17c485697925df18 (diff) | |
download | meta-openembedded-scarthgap.tar.gz |
ydotool: Do not package systemd unit files on non-systemd distrosscarthgap
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>
-rw-r--r-- | meta-oe/recipes-graphics/ydotool/ydotool_git.bb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/ydotool/ydotool_git.bb b/meta-oe/recipes-graphics/ydotool/ydotool_git.bb index c1427457d1..3acf70235e 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}/systemd ${D}${nonarch_libdir} + fi +} SYSTEMD_SERVICE:${PN} = "ydotoold.service" SYSTEMD_AUTO_ENABLE = "disable" |