From: Jordan Williams Date: Mon, 22 Apr 2024 16:04:36 +0000 (-0500) Subject: meson: Require pty for the su and runuser executables X-Git-Tag: v2.42-start~379^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c917cf8a054058b261c7b02699b017443dbb501;p=thirdparty%2Futil-linux.git meson: Require pty for the su and runuser executables Signed-off-by: Jordan Williams --- diff --git a/meson.build b/meson.build index 68d6b8bed..feca474ca 100644 --- a/meson.build +++ b/meson.build @@ -1091,7 +1091,7 @@ if opt and not is_disabler(exe) bashcompletions += ['utmpdump'] endif -opt = not get_option('build-su').disabled() +opt = get_option('build-su').require(have_pty).allowed() exe = executable( 'su', 'login-utils/su.c', @@ -1173,7 +1173,7 @@ if opt and not is_disabler(exe) join_paths(mandir, 'man8/vigr.8')) endif -opt = not get_option('build-runuser').disabled() +opt = get_option('build-runuser').require(have_pty).allowed() exe = executable( 'runuser', 'login-utils/runuser.c',