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.bur...@arm.com> --- meta-oe/recipes-graphics/tigervnc/tigervnc_1.14.1.bb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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" -- 2.43.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#115664): https://lists.openembedded.org/g/openembedded-devel/message/115664 Mute This Topic: https://lists.openembedded.org/mt/111398039/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-