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-20 11:05:12 -0700 |
commit | 87cdaf04b1e111d9f0809f4f5248f474407e4f25 (patch) | |
tree | 7a4ed3836d71c2c25c8a5bcc890d4ec7f0035f71 /meta-oe/recipes-graphics | |
parent | eb30a6b92ba45eae63cd8aefa37dc3961ad5b7bb (diff) | |
download | meta-openembedded-87cdaf04b1e111d9f0809f4f5248f474407e4f25.tar.gz |
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>
Diffstat (limited to 'meta-oe/recipes-graphics')
-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 c1427457d..3acf70235 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 = "\ | |||
16 | -DBUILD_DOCS=OFF \ | 16 | -DBUILD_DOCS=OFF \ |
17 | " | 17 | " |
18 | 18 | ||
19 | do_install:append() { | ||
20 | if ! ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
21 | rm -rf ${D}${systemd_user_unitdir} | ||
22 | rmdir ${D}${nonarch_libdir}/systemd ${D}${nonarch_libdir} | ||
23 | fi | ||
24 | } | ||
19 | SYSTEMD_SERVICE:${PN} = "ydotoold.service" | 25 | SYSTEMD_SERVICE:${PN} = "ydotoold.service" |
20 | SYSTEMD_AUTO_ENABLE = "disable" | 26 | SYSTEMD_AUTO_ENABLE = "disable" |