Am 04.04.25 um 00:46 schrieb Chris Hofstaedtler:

Maybe it needs some additional work to fully function with current systemd versions.  IIRC procps also only recently added some new code to deal with new systemd behaviours.

Maybe try the attached patch. With it applied I get:


michael@mars:~$ loginctl
SESSION  UID USER    SEAT  LEADER CLASS   TTY  IDLE SINCE
      3 1000 michael seat0 2116   user    tty1 no   -
      4 1000 michael -     2125   manager -    no   -

2 sessions listed.

michael@mars:~$ who
michael  seat0        2025-04-02 16:38
michael  tty1         2025-04-02 16:38


Regards,
Michael
diff -Nru coreutils-9.6/debian/changelog coreutils-9.6/debian/changelog
--- coreutils-9.6/debian/changelog      2025-04-03 19:29:08.000000000 +0200
+++ coreutils-9.6/debian/changelog      2025-04-04 01:05:25.000000000 +0200
@@ -1,3 +1,10 @@
+coreutils (9.6-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Enable systemd/logind support (Closes: #1079575, #1085643)
+
+ -- Michael Biebl <bi...@debian.org>  Fri, 04 Apr 2025 01:05:25 +0200
+
 coreutils (9.6-1) unstable; urgency=low
 
   * New upstream version
diff -Nru coreutils-9.6/debian/control coreutils-9.6/debian/control
--- coreutils-9.6/debian/control        2024-03-09 18:40:09.000000000 +0100
+++ coreutils-9.6/debian/control        2025-04-04 01:02:57.000000000 +0200
@@ -3,7 +3,7 @@
 Section: utils
 Priority: required
 Standards-Version: 4.5.0
-Build-Depends: gettext (>= 0.10.37), debhelper-compat (= 13), texinfo (>= 
4.2), groff, libattr1-dev [linux-any], libacl1-dev [linux-any], libselinux1-dev 
(>= 1.32) [linux-any], gperf, bison, libgmp3-dev, libssl-dev
+Build-Depends: gettext (>= 0.10.37), debhelper-compat (= 13), texinfo (>= 
4.2), groff, libattr1-dev [linux-any], libacl1-dev [linux-any], libselinux1-dev 
(>= 1.32) [linux-any], gperf, bison, libgmp3-dev, libssl-dev, libsystemd-dev 
[linux-any]
 
 Package: coreutils
 Architecture: any
diff -Nru coreutils-9.6/debian/rules coreutils-9.6/debian/rules
--- coreutils-9.6/debian/rules  2025-04-03 19:29:08.000000000 +0200
+++ coreutils-9.6/debian/rules  2025-04-04 01:05:23.000000000 +0200
@@ -24,8 +24,15 @@
 override_dh_autoreconf:
        # don't do this
 
+ifeq ($(DEB_HOST_ARCH_OS),linux)
+CONFFLAGS += --enable-systemd
+endif
+
 override_dh_auto_configure:
-       dh_auto_configure -- --enable-install-program=arch 
--with-openssl=auto-gpl-compat
+       dh_auto_configure -- \
+               --enable-install-program=arch \
+               --with-openssl=auto-gpl-compat \
+               $(CONFFLAGS)
 
 %:
        dh $@

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to