]> 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>
Wed, 24 Apr 2024 20:30:30 +0000 (15:30 -0500)
Signed-off-by: Jordan Williams <jordan@jwillikers.com>
meson.build

index 68d6b8bed8ec9667b1234f42e181de1f81c5d9d1..feca474ca7e6403a47961a7824f722361399e958 100644 (file)
@@ -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',