Subject: pkg/15931: gnome-libs can't handle NetBSD utmp/utmpx
To: None <gnats-bugs@gnats.netbsd.org>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 03/15/2002 12:48:13
>Number:         15931
>Category:       pkg
>Synopsis:       gnome-libs can't handle NetBSD utmp/utmpx
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 15 03:49:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Martin Husemann
>Release:        NetBSD 1.5ZA
>Organization:
>Environment:
System: NetBSD night-porter.duskware.de 1.5ZA NetBSD 1.5ZA (PORTER) #0: Fri Feb 22 22:00:53 MET 2002 martin@night-porter.duskware.de:/usr/src/sys/arch/i386/compile/PORTER i386
Architecture: i386
Machine: i386
>Description:

The gnome-libs-1.4.1.2/zvt/gnome-utmp.c file does not handle NetBSD utmp/utmpx
and wmtp/wtmpx correctly. Configure looks for getutmpx and getutent, neither
of which we have. It then falls back to directly fiddling with the utmp/wtmp
files which breaks badly:

When opening a gnome-term my tcsh says:
y^E has logged on  from local.
3 has logged on p3 from local.

and "w" says:

11:46AM  up  2:36, 6 users, load averages: 2.89, 1.19, 0.71
USER TTY FROM              LOGIN@  IDLE WHAT
w: Stale utmp entry: in  
      p3 -                01Jan70     0 -
w: Stale utmp entry: y  
w: Stale utmp entry: p4  4
w: Stale utmp entry: :0  
w: Stale utmp entry: Ñ<q  

>How-To-Repeat:
code inspection, install gnome-core and use gnome-terminal.

>Fix:
Make it look for getutmpx? Emulate the calls it looks for?
I don't know the relevant standards.
>Release-Note:
>Audit-Trail:
>Unformatted:
 
 current as of March 13, pkgsrc the same, gnome-libs-1.4.1.2nb1