From a00b7ac78f48723ca229541969d92ae2ecce6743 Mon Sep 17 00:00:00 2001 From: Marvin Friedrich Date: Fri, 16 Oct 2026 01:57:12 +0200 Subject: [PATCH] Fix building with -Dsystemd=disabled Building with `-Dsystemd=disabled` seems to require the systemd dependency anyways when a systemd.pc is found (e.g. with elogind). --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index de839f9..5fe9d66 100644 --- a/meson.build +++ b/meson.build @@ -59,7 +59,7 @@ endif conf.set('HAVE_LOGIND', logind.found()) systemd_opt = get_option('systemd') -systemd_dep = dependency('systemd', required: systemd_opt.enabled()) +systemd_dep = dependency('systemd', required: systemd_opt) if systemd_dep.found() systemduserunitdir = systemd_dep.get_variable( pkgconfig: 'systemduserunitdir', @@ -67,7 +67,7 @@ if systemd_dep.found() ) enable_systemd = true else - enable_systemd = systemd_dep.found() and not systemd_opt.disabled() + enable_systemd = false systemduserunitdir = join_paths(get_option('prefix'), 'lib', 'systemd', 'user') endif