From 9b066dda9fc4d4537ece85e7cbdb3f01b61ed2f3 Mon Sep 17 00:00:00 2001 From: Jordan Williams Date: Mon, 22 Apr 2024 11:04:36 -0500 Subject: [PATCH] meson: Require pty for the su and runuser executables Signed-off-by: Jordan Williams (cherry picked from commit 8c917cf8a054058b261c7b02699b017443dbb501) --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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', -- 2.47.3