diff mbox series

[5/7] tigervnc: fix systemd unit packaging

Message ID 20250225180917.3232793-5-ross.burton@arm.com
State Under Review
Headers show
Series [1/7] lftp: remove obsolete acpaths | expand

Commit Message

Ross Burton Feb. 25, 2025, 6:09 p.m. UTC
Pass the correct path so the unit is installed where it should be, and
use the systemd class to ensure the unit is enabled correctly.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta-oe/recipes-graphics/tigervnc/tigervnc_1.14.1.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-graphics/tigervnc/tigervnc_1.14.1.bb b/meta-oe/recipes-graphics/tigervnc/tigervnc_1.14.1.bb
index 4d2bb1f063..6e4d4a7b0c 100644
--- a/meta-oe/recipes-graphics/tigervnc/tigervnc_1.14.1.bb
+++ b/meta-oe/recipes-graphics/tigervnc/tigervnc_1.14.1.bb
@@ -9,7 +9,7 @@  LIC_FILES_CHKSUM = "file://LICENCE.TXT;md5=75b02c2872421380bbd47781d2bd75d3"
 
 S = "${WORKDIR}/git"
 
-inherit autotools cmake features_check pkgconfig
+inherit autotools cmake features_check pkgconfig systemd
 
 REQUIRED_DISTRO_FEATURES = "x11 pam"
 
@@ -79,7 +79,7 @@  EXTRA_OECONF = "--disable-xorg --disable-xnest --disable-xvfb --disable-dmx \
         --disable-xwayland \
 "
 
-EXTRA_OECMAKE += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '-DCMAKE_INSTALL_UNITDIR=${systemd_unitdir}', '-DINSTALL_SYSTEMD_UNITS=OFF', d)}"
+EXTRA_OECMAKE += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '-DCMAKE_INSTALL_UNITDIR=${systemd_system_unitdir}', '-DINSTALL_SYSTEMD_UNITS=OFF', d)}"
 
 do_configure:append () {
     olddir=`pwd`
@@ -124,7 +124,8 @@  FILES:${PN} += " \
     ${libdir}/xorg/modules/extensions \
     ${datadir}/icons \
     ${datadir}/metainfo \
-    ${systemd_unitdir} \
 "
 
 FILES:${PN}-dbg += "${libdir}/xorg/modules/extensions/.debug"
+
+SYSTEMD_SERVICE:${PN} = "vncserver@.service"