]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Merge branch 'logind' of https://github.com/thkukuk/util-linux
authorKarel Zak <kzak@redhat.com>
Wed, 16 Aug 2023 07:29:50 +0000 (09:29 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 16 Aug 2023 07:29:50 +0000 (09:29 +0200)
* 'logind' of https://github.com/thkukuk/util-linux:
  write: query logind for list of users with tty (#2088)
  agetty: use sd_get_sessions() for number of users (#2088)
  wall: query logind for list of users with tty (#2088)

1  2 
configure.ac
meson.build
term-utils/agetty.c
term-utils/wall.c
term-utils/write.c

diff --cc configure.ac
Simple merge
diff --cc meson.build
index 58630eb8b375db07f7dd55c223f8a55f964d4e1a,66d90e15ae849890592c94070b978d4ea43638a7..221ae373b6446449bd041fe1dea8b07c4168be2a
@@@ -318,8 -310,12 +318,13 @@@ lib_systemd = dependency
    'libsystemd',
    required : get_option('systemd'))
  conf.set('HAVE_LIBSYSTEMD', lib_systemd.found() ? 1 : false)
 +conf.set('USE_SYSTEMD', lib_systemd.found() ? 1 : false)
  
+ have = cc.has_function(
+   'sd_session_get_username',
+   dependencies : lib_systemd)
+ conf.set('HAVE_DECL_SD_SESSION_GET_USERNAME', have ? 1 : false)
  lib_udev = dependency(
    'libudev',
    required : get_option('systemd'))
@@@ -2416,8 -2367,8 +2421,9 @@@ exe = executable
    wall_sources,
    include_directories : includes,
    link_with : [lib_common],
+   dependencies : [lib_systemd],
    install_dir : usrbin_exec_dir,
 +  install_mode : 'rwxr-sr-x',
    install : opt,
    build_by_default : opt)
  if opt
@@@ -2435,8 -2386,8 +2441,9 @@@ exe = executable
    write_sources,
    include_directories : includes,
    link_with : [lib_common],
+   dependencies : [lib_systemd],
    install_dir : usrbin_exec_dir,
 +  install_mode : 'rwxr-sr-x',
    install : opt,
    build_by_default : opt)
  if opt
Simple merge
Simple merge
Simple merge