diff --git a/ports/dbus/libsystemd.patch b/ports/dbus/libsystemd.patch new file mode 100644 index 00000000000000..74193dc4075929 --- /dev/null +++ b/ports/dbus/libsystemd.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d3ec71b..932066a 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -141,6 +141,10 @@ if(DBUS_LINUX) + if(ENABLE_SYSTEMD AND SYSTEMD_FOUND) + set(DBUS_BUS_ENABLE_SYSTEMD ON) + set(HAVE_SYSTEMD ${SYSTEMD_FOUND}) ++ pkg_check_modules(SYSTEMD libsystemd IMPORTED_TARGET) ++ set(SYSTEMD_LIBRARIES PkgConfig::SYSTEMD CACHE INTERNAL "") ++ else() ++ set(SYSTEMD_LIBRARIES "" CACHE INTERNAL "") + endif() + option(ENABLE_USER_SESSION "enable user-session semantics for session bus under systemd" OFF) + set(DBUS_ENABLE_USER_SESSION ${ENABLE_USER_SESSION}) diff --git a/ports/dbus/portfile.cmake b/ports/dbus/portfile.cmake index 740c9d141152b8..1aae5fcddcd307 100644 --- a/ports/dbus/portfile.cmake +++ b/ports/dbus/portfile.cmake @@ -11,10 +11,12 @@ vcpkg_from_gitlab( cmake.dep.patch pkgconfig.patch getpeereid.patch # missing check from configure.ac + libsystemd.patch ) vcpkg_check_features(OUT_FEATURE_OPTIONS options FEATURES + systemd ENABLE_SYSTEMD x11 DBUS_BUILD_X11 x11 CMAKE_REQUIRE_FIND_PACKAGE_X11 ) @@ -30,7 +32,6 @@ vcpkg_cmake_configure( -DDBUS_INSTALL_SYSTEM_LIBS=OFF #-DDBUS_SERVICE=ON -DDBUS_WITH_GLIB=OFF - -DENABLE_SYSTEMD=ON -DTHREADS_PREFER_PTHREAD_FLAG=ON -DXSLTPROC_EXECUTABLE=FALSE "-DCMAKE_INSTALL_SYSCONFDIR=${CURRENT_PACKAGES_DIR}/etc/${PORT}" diff --git a/ports/dbus/vcpkg.json b/ports/dbus/vcpkg.json index 771baacbedfd41..ce20181b817dca 100644 --- a/ports/dbus/vcpkg.json +++ b/ports/dbus/vcpkg.json @@ -1,7 +1,7 @@ { "name": "dbus", "version": "1.15.8", - "port-version": 1, + "port-version": 2, "description": "D-Bus specification and reference implementation, including libdbus and dbus-daemon", "homepage": "https://gitlab.freedesktop.org/dbus/dbus", "license": "AFL-2.1 OR GPL-2.0-or-later", @@ -17,7 +17,23 @@ "host": true } ], + "default-features": [ + { + "name": "systemd", + "platform": "linux" + } + ], "features": { + "systemd": { + "description": "Build with systemd at_console support", + "supports": "linux", + "dependencies": [ + { + "name": "libsystemd", + "platform": "linux" + } + ] + }, "x11": { "description": "Build with X11 autolaunch support", "dependencies": [ diff --git a/ports/freerdp/portfile.cmake b/ports/freerdp/portfile.cmake index 0a6ef5311789e4..b83e406b5abd2a 100644 --- a/ports/freerdp/portfile.cmake +++ b/ports/freerdp/portfile.cmake @@ -57,6 +57,7 @@ vcpkg_cmake_configure( # Can be overriden in custom triplet file -DWITH_ALSA=OFF -DWITH_CAIRO=OFF + -DWITH_LIBSYSTEMD=OFF MAYBE_UNUSED_VARIABLES MSVC_RUNTIME ) diff --git a/ports/freerdp/vcpkg.json b/ports/freerdp/vcpkg.json index 3e225b8a07b8cc..a4efbd88b9538f 100644 --- a/ports/freerdp/vcpkg.json +++ b/ports/freerdp/vcpkg.json @@ -1,6 +1,7 @@ { "name": "freerdp", "version": "2.11.2", + "port-version": 1, "description": "A free implementation of the Remote Desktop Protocol (RDP)", "homepage": "https://github.com/FreeRDP/FreeRDP", "license": "Apache-2.0", @@ -46,7 +47,16 @@ }, "server": { "description": "Build server components", - "supports": "!android & !ios & !uwp" + "supports": "!android & !ios & !uwp", + "dependencies": [ + { + "name": "freerdp", + "default-features": false, + "features": [ + "winpr-tools" + ] + } + ] }, "urbdrc": { "description": "USB redirection channel support", diff --git a/versions/baseline.json b/versions/baseline.json index 28e747ef0f99b0..a95c09e7f44056 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2130,7 +2130,7 @@ }, "dbus": { "baseline": "1.15.8", - "port-version": 1 + "port-version": 2 }, "dcmtk": { "baseline": "3.6.7", @@ -2762,7 +2762,7 @@ }, "freerdp": { "baseline": "2.11.2", - "port-version": 0 + "port-version": 1 }, "freetds": { "baseline": "1.3.10", diff --git a/versions/d-/dbus.json b/versions/d-/dbus.json index 0e39a12637cf87..f4bf2e5a93e822 100644 --- a/versions/d-/dbus.json +++ b/versions/d-/dbus.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "d91a1718705f5d0d6ba7922cf832759a58469ff8", + "version": "1.15.8", + "port-version": 2 + }, { "git-tree": "9104cc6d890ace8c14067e7cbf29c39f7a93b937", "version": "1.15.8", diff --git a/versions/f-/freerdp.json b/versions/f-/freerdp.json index f88b634cbcd6fc..e273fb62262e7c 100644 --- a/versions/f-/freerdp.json +++ b/versions/f-/freerdp.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "980f914c0856191ef155ede267bc4553ccc49ac2", + "version": "2.11.2", + "port-version": 1 + }, { "git-tree": "90f838d8fb3b7d8d45b9d64f951486cee618ab8e", "version": "2.11.2",