Skip to content

Commit

Permalink
systemd: search for systemd-reply-password in dir specified by systemd (
Browse files Browse the repository at this point in the history
#487)

This increases build compatibility between systems,
like Debian 11 and Debian 12.

Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
  • Loading branch information
oldium authored Oct 6, 2024
1 parent f048eca commit ada2c87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/luks/systemd/meson.build
Original file line number Diff line number Diff line change
@@ -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'),
Expand Down

0 comments on commit ada2c87

Please sign in to comment.