diff mbox series

[meta-oe,2/2] phodav: make sure systemd files are packaged correctly

Message ID 20230830163404.3466695-2-Martin.Jansa@gmail.com
State Under Review
Headers show
Series [meta-oe,1/2] json-schema-validator: restore 0004-cmake-Use-GNUInstallDirs.patch | expand

Commit Message

Martin Jansa Aug. 30, 2023, 4:34 p.m. UTC
* fixes installed-vs-shipped QA issue with multilib:

ERROR: lib32-phodav-3.0-r0 do_package: QA Issue: lib32-phodav: Files/directories were installed but not shipped in any package:
  /usr/lib/systemd
  /usr/lib/systemd/system
  /usr/lib/systemd/system/spice-webdavd.service
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
lib32-phodav: 3 installed and not shipped files. [installed-vs-shipped]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta-networking/recipes-support/spice/phodav_3.0.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-networking/recipes-support/spice/phodav_3.0.bb b/meta-networking/recipes-support/spice/phodav_3.0.bb
index 03e3caee27..990e017022 100644
--- a/meta-networking/recipes-support/spice/phodav_3.0.bb
+++ b/meta-networking/recipes-support/spice/phodav_3.0.bb
@@ -17,7 +17,9 @@  PACKAGECONFIG[avahi] = "-Davahi=enabled,-Davahi=disabled,avahi"
 
 inherit pkgconfig gnomebase gettext gtk-doc
 
+EXTRA_OEMESON += "-Dsystemdsystemunitdir=${systemd_system_unitdir}"
+
 SRC_URI = "https://download.gnome.org/sources/phodav/3.0/phodav-${PV}.tar.xz;name=archive"
 SRC_URI[archive.sha256sum] = "392ec2d06d50300dcff1ef269a2a985304e29bce3520002fca29f2edc1d138d1"
 
-FILES:${PN} += "${libdir}"
+FILES:${PN} += "${libdir} ${systemd_system_unitdir}"