Devuan bug report logs - #900
procps: w does not query elogind for sessions

version graph

Package: procps; Maintainer for procps is Devuan Dev <devuan-dev@lists.dyne.org>; Source for procps is src:procps.

Reported by: Andrew Bower <andrew@bower.uk>

Date: Sun, 27 Jul 2025 22:50:01 UTC

Severity: grave

Found in version 2:4.0.4-8devuan1

Fixed in version 2.41-5devuan2

Done: dak@devuan.org

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.devuan.org
Subject: bug#900: procps: w does not query elogind for sessions
Reply-To: Andrew Bower <andrew@bower.uk>, 900@bugs.devuan.org
Resent-From: Andrew Bower <andrew@bower.uk>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: Devuan Dev <devuan-dev@lists.dyne.org>
X-Loop: owner@bugs.devuan.org
Resent-Date: Tue, 29 Jul 2025 20:28:02 +0000
Resent-Message-ID: <handler.900.B900.175382082626173@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: followup 900
X-Devuan-PR-Package: procps
X-Devuan-PR-Keywords: 
References: <175365644638.7806.4267640139913169199.reportbug@arden.ab8.net> <aIdUCiy-f5zBOGGe@hindley.org.uk> <aIfYMj-jSJbNoPZx@arden.ab8.net> <aIieJYSAP9eVSiyg@hindley.org.uk> <175365644638.7806.4267640139913169199.reportbug@arden.ab8.net>
X-Devuan-PR-Source: procps
Received: via spool by 900-submit@bugs.devuan.org id=B900.175382082626173
          (code B ref 900); Tue, 29 Jul 2025 20:28:02 +0000
Received: (at 900) by bugs.devuan.org; 29 Jul 2025 20:27:06 +0000
Delivered-To: bugs@devuan.org
Received: from email.devuan.org [2a01:4f9:fff1:13::5fd9:f9e4]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Tue, 29 Jul 2025 20:27:06 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id rn3tIpEuiWhPHwAAmSBk0A
	(envelope-from <andrew@bower.uk>)
	for <bugs@devuan.org>; Tue, 29 Jul 2025 20:26:57 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 7442218B; Tue, 29 Jul 2025 20:26:57 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS,
	T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1098:0:82:1000:0:2:1; helo=mx2.mythic-beasts.com; envelope-from=andrew@bower.uk; receiver=<UNKNOWN> 
Received: from mx2.mythic-beasts.com (mx2.mythic-beasts.com [IPv6:2a00:1098:0:82:1000:0:2:1])
	by email.devuan.org (Postfix) with ESMTPS id 5D58B4E
	for <900@bugs.devuan.org>; Tue, 29 Jul 2025 20:26:56 +0000 (UTC)
Received: by mailhub-hex-d.mythic-beasts.com with esmtpsa  (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
	(Exim 4.96)
	(envelope-from <andrew@bower.uk>)
	id 1ugquV-008gCp-1X;
	Tue, 29 Jul 2025 21:26:55 +0100
Received: from andy by shenstone.ab8.net with local (Exim 4.98.2)
	(envelope-from <andrew@bower.uk>)
	id 1ugquS-000000005Rr-2m6U;
	Tue, 29 Jul 2025 21:26:52 +0100
Date: Tue, 29 Jul 2025 21:26:52 +0100
From: Andrew Bower <andrew@bower.uk>
To: Mark Hindley <mark@hindley.org.uk>
Cc: 900@bugs.devuan.org
Message-ID: <aIkujJEowteSzgya@shenstone.ab8.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <aIieJYSAP9eVSiyg@hindley.org.uk>
User-Agent: Mutt/2.2.13 (2024-03-09)
X-BlackCat-Spam-Score: 0
On Tue, Jul 29, 2025 at 11:10:45AM +0100, Mark Hindley wrote:
 > > Devuan systems without elogind are viable (I use sway/seatd as my daily 
> > > driver) so just adding elogind support to procps isn't a universal 
> > > solution.
> > 
> > Does sway/seatd write to utmp? Does it do anything else?
> 
> I think not: I run it from the console, so it relies on login(1).

I take it from this that you currently don't get any login entries,
then?

> > > Do you have a suggestion or idea as to a way forward?
> > 
> > I see we have forked util-linux, so one thing we could do is to fix the
> > build of login(1) to restore writing to utmp, for virtual console
> > logins. That assumes that this is what has actually been broken - I
> > haven't checked yet.
> 
> That seems sane. I'll see if I can find the commit.

Looking at the following, utmp writing had already been turned off in
src:shadow before util-linux took the command over.

https://salsa.debian.org/debian/util-linux/-/commit/0fa51ed784e19e58f8e04e43aabc3f324d4135f7#4c5d3c697d7b8f925a7d3b18f168f4c51cbdb43f

I haven't found the point in the old package where it was turned off,
unless it was implicit with the --enable-logind flag:

https://salsa.debian.org/debian/shadow/-/commit/1526e6cde87c48e0691c9e8cd2ca9755adcfd4b6

I haven't investigated very thoroughly.

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Fri Sep 26 23:22:54 2025;