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


Message #43 received at 900@bugs.devuan.org (full text, mbox, reply):

Received: (at 900) by bugs.devuan.org; 8 Aug 2025 21:57:13 +0000
Return-Path: <andrew@bower.uk>
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); Fri, 08 Aug 2025 21:57:13 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id +FMAMp1ylmg4aQAAmSBk0A
	(envelope-from <andrew@bower.uk>)
	for <bugs@devuan.org>; Fri, 08 Aug 2025 21:56:45 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id B1DF772D; Fri,  8 Aug 2025 21:56:45 +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_FILL_THIS_FORM_SHORT,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:86:1000:0:2:1; helo=mx1.mythic-beasts.com; envelope-from=andrew@bower.uk; receiver=<UNKNOWN> 
Received: from mx1.mythic-beasts.com (mx1.mythic-beasts.com [IPv6:2a00:1098:0:86:1000:0:2:1])
	by email.devuan.org (Postfix) with ESMTPS id 031EB173
	for <900@bugs.devuan.org>; Fri,  8 Aug 2025 21:56:42 +0000 (UTC)
Received: by mailhub-cam-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 1ukV4s-002zU2-06;
	Fri, 08 Aug 2025 22:56:42 +0100
Received: from ajb85 by arden.ab8.net with local (Exim 4.98.2)
	(envelope-from <andrew@bower.uk>)
	id 1ukV4k-000000005Qh-2IvC;
	Fri, 08 Aug 2025 22:56:34 +0100
Date: Fri, 8 Aug 2025 22:56:34 +0100
From: Andrew Bower <andrew@bower.uk>
To: Mark Hindley <mark@hindley.org.uk>
Cc: 900@bugs.devuan.org
Subject: Re: bug#900: procps: w does not query elogind for sessions
Message-ID: <aJZyko8XZuADzuut@arden.ab8.net>
References: <175365644638.7806.4267640139913169199.reportbug@arden.ab8.net>
 <aIdUCiy-f5zBOGGe@hindley.org.uk>
 <aIfYMj-jSJbNoPZx@arden.ab8.net>
 <aIieJYSAP9eVSiyg@hindley.org.uk>
 <aIkujJEowteSzgya@shenstone.ab8.net>
 <aIuZjUI-ttE5Qa_o@hindley.org.uk>
 <aIvwXGoQ2izucZfR@shenstone.ab8.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <aIvwXGoQ2izucZfR@shenstone.ab8.net>
User-Agent: Mutt/2.2.13 (2024-03-09)
X-BlackCat-Spam-Score: 0
Hi Mark,

On Thu, Jul 31, 2025 at 11:38:20PM +0100, Andrew Bower wrote:
> On Thu, Jul 31, 2025 at 05:27:57PM +0100, Mark Hindley wrote:
> > On Tue, Jul 29, 2025 at 09:26:52PM +0100, Andrew Bower wrote:
> > > > 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?
> > 
> > I haven't upgraded to excalibur yet.
> > 
> > I have just updated procps in ceres to 2%4.0.4-9devuan1 which includes your fix
> > for Debian#1108549.
> 
> Thanks for merging that!
> 
> > Once that is in the mirrors, perhaps you can see what does and doesn't work?
> 
> Unfortunately it doesn't make any difference on Devuan because the fixes
> are in bits that are compiled out without libsystemd!
> 
> I think the locus of the work for Devuan (if we want to avoid libsystemd
> in core tools, which is reasonable but has consequences) is that we need
> to restore utmp-writing in other packages. That won't be fun or
> comprehensive.

Here is a patch that restores utmp writing to uses of login(1), which
fixes the reporting of virtual console sessions in 'w' on Devuan.

https://git.devuan.org/abower/util-linux/pulls/1

ajb85@arden:~/git/util-linux$ w
 22:50:08 up  1:09,  2 users,  load average: 0.36, 0.85, 1.19
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU  WHAT
ajb85    tty2     -                22:45    4:46   0.06s  0.06s -bash
ajb85@arden:~/git/util-linux$ finger
Login     Name           Tty      Idle  Login Time   Office     Office Phone
ajb85     Andrew Bower  *:0.0           Aug  8 21:40 (:0.0)
ajb85     Andrew Bower  *tty2        4  Aug  8 22:45

Andrew

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:23:02 2025;