summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Ferland <marc.ferland@sonatest.com>2025-08-29 09:06:38 -0400
committerGyorgy Sarvari <skandigraun@gmail.com>2025-09-07 07:37:56 +0200
commit00b23ad77184eb3f54ec7ae777f9bc764b17007f (patch)
treeb0a34ae6aeb7b3366b18087eadd89624f27486cf
parenta2da0d25a09cadc18e02351178d3687ebf91516e (diff)
downloadmeta-openembedded-00b23ad77184eb3f54ec7ae777f9bc764b17007f.tar.gz
libvncserver: fix generated LibVNCServerTargets.cmake
The currently generated LibVNCServerTargets.cmake will include the following 'set_target_properties': set_target_properties(LibVNCServer::vncclient PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include" INTERFACE_LINK_LIBRARIES "systemd;/usr/lib/libz.so;/usr/lib/liblzo2.so;/usr/lib/libjpeg.so;/usr/lib/libgcrypt.so;/usr/lib/libgnutls.so" ) INTERFACE_LINK_LIBRARIES here points to absolute paths which hardcodes the library paths. From CMake doc [1]: Note that it is not advisable to populate the INTERFACE_LINK_LIBRARIES of a target with absolute paths to dependencies. That would hard-code into installed packages the library file paths for dependencies as found on the machine the package was made on. This breaks krfb build (kde desktop sharing server) since CMake cannot find these libraries. Removing the absolute paths solves the issue. Note: I also added a 'inherit pkgconfig' since libvncserver uses it to detect libsystemd presence. 1: https://cmake.org/cmake/help/latest/prop_tgt/INTERFACE_LINK_LIBRARIES.html Signed-off-by: Marc Ferland <marc.ferland@sonatest.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 215694286716cf83bf9e52c5e61b4cbc861098fc) Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
-rw-r--r--meta-oe/recipes-graphics/libvncserver/libvncserver_0.9.14.bb4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-oe/recipes-graphics/libvncserver/libvncserver_0.9.14.bb b/meta-oe/recipes-graphics/libvncserver/libvncserver_0.9.14.bb
index ce01593b8b..6f271ee0d3 100644
--- a/meta-oe/recipes-graphics/libvncserver/libvncserver_0.9.14.bb
+++ b/meta-oe/recipes-graphics/libvncserver/libvncserver_0.9.14.bb
@@ -42,7 +42,7 @@ PACKAGECONFIG[zlib] = "-DWITH_ZLIB=ON,-DWITH_ZLIB=OFF,zlib"
42PACKAGE_BEFORE_PN = "libvncclient" 42PACKAGE_BEFORE_PN = "libvncclient"
43FILES:libvncclient = "${libdir}/libvncclient.*" 43FILES:libvncclient = "${libdir}/libvncclient.*"
44 44
45inherit cmake 45inherit cmake pkgconfig
46 46
47SRC_URI = "git://github.com/LibVNC/libvncserver;branch=master;protocol=https" 47SRC_URI = "git://github.com/LibVNC/libvncserver;branch=master;protocol=https"
48SRCREV = "10e9eb75f73e973725dc75c373de5d89807af028" 48SRCREV = "10e9eb75f73e973725dc75c373de5d89807af028"
@@ -52,5 +52,5 @@ S = "${WORKDIR}/git"
52EXTRA_OECMAKE = "-DMAKE_INSTALL_LIBDIR=${libdir}" 52EXTRA_OECMAKE = "-DMAKE_INSTALL_LIBDIR=${libdir}"
53 53
54do_install:append() { 54do_install:append() {
55 sed -i -e 's|${STAGING_DIR_HOST}||g' ${D}${libdir}/cmake/LibVNCServer/LibVNCServerTargets.cmake 55 sed -i -e 's|${STAGING_DIR_HOST}${libdir}/||g' ${D}${libdir}/cmake/LibVNCServer/LibVNCServerTargets.cmake
56} 56}