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.40.1-rc1~9^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b066dda9fc4d4537ece85e7cbdb3f01b61ed2f3;p=thirdparty%2Futil-linux.git meson: Require pty for the su and runuser executables Signed-off-by: Jordan Williams (cherry picked from commit 8c917cf8a054058b261c7b02699b017443dbb501) --- diff --git a/meson.build b/meson.build index 8295445b5..4429e439a 100644 --- a/meson.build +++ b/meson.build @@ -1081,7 +1081,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', @@ -1162,7 +1162,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',