From 857a5bd2624f5ddf61455e1699c3fa5b11c11494 Mon Sep 17 00:00:00 2001 From: matt335672 <30179339+matt335672@users.noreply.github.com> Date: Tue, 15 Apr 2025 12:16:10 +0100 Subject: [PATCH] Only add systemd-dev for systemd versions >= 255 (cherry picked from commit 93871c9182c139452af4e2f8f40b1b592ffa7092) --- scripts/install_xrdp_build_dependencies_with_apt.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/install_xrdp_build_dependencies_with_apt.sh b/scripts/install_xrdp_build_dependencies_with_apt.sh index c832bc2c..5c366888 100755 --- a/scripts/install_xrdp_build_dependencies_with_apt.sh +++ b/scripts/install_xrdp_build_dependencies_with_apt.sh @@ -72,7 +72,11 @@ esac # We need systemd-dev for Debian-based systems using systemd if command -v systemctl >/dev/null; then - PACKAGES="$PACKAGES systemd-dev" + # Check for systemd version >= 255 + set -- $(systemctl --version) + if [ "$#" -gt 2 ] && [ "$1" = systemd ] && [ "$2" -ge 255 ]; then + PACKAGES="$PACKAGES systemd-dev" + fi fi case "$ARCH"