]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: Require pty for the su and runuser executables
authorJordan Williams <jordan@jwillikers.com>
Mon, 22 Apr 2024 16:04:36 +0000 (11:04 -0500)
committerJordan Williams <jordan@jwillikers.com>
Thu, 25 Apr 2024 12:30:55 +0000 (07:30 -0500)
Signed-off-by: Jordan Williams <jordan@jwillikers.com>
(cherry picked from commit 8c917cf8a054058b261c7b02699b017443dbb501)

meson.build

index 8295445b547d799800d95eef80cb964d2e9fabe0..4429e439aff529550580ba8e1b3c7e1008efaa53 100644 (file)
@@ -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',