From f0bebbb04f7d0a1e721e4c1070ab5c133af2f88a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Old=C5=99ich=20Jedli=C4=8Dka?= Date: Sat, 5 Oct 2024 20:03:40 +0200 Subject: [PATCH] systemd: search for systemd-reply-password in dir specified by systemd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This increases build compatibility between systems, like Debian 11 and Debian 12. Signed-off-by: Oldřich Jedlička --- src/luks/systemd/meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/luks/systemd/meson.build b/src/luks/systemd/meson.build index eda879b4..3f10f3d9 100644 --- a/src/luks/systemd/meson.build +++ b/src/luks/systemd/meson.build @@ -1,6 +1,8 @@ systemd = dependency('systemd', required: false) +systemdutildir = systemd.found() ? systemd.get_pkgconfig_variable('systemdutildir', default: '') : '' sd_reply_pass = find_program( + (systemdutildir != '') ? join_paths(systemdutildir, 'systemd-reply-password') : '', join_paths(get_option('prefix'), get_option('libdir'), 'systemd', 'systemd-reply-password'), join_paths(get_option('prefix'), 'lib', 'systemd', 'systemd-reply-password'), join_paths('/', 'usr', get_option('libdir'), 'systemd', 'systemd-reply-password'),