GNU bug report logs - #12778
Failure when running check-root make target

Previous Next

Package: coreutils;

Reported by: Matt Burgess <matthew <at> linuxfromscratch.org>

Date: Thu, 1 Nov 2012 20:33:01 UTC

Severity: normal

Full log


Message #23 received at 12778 <at> debbugs.gnu.org (full text, mbox):

From: Andrew Warshall <warshall <at> 99main.com>
To: "Voelker, Bernhard" <bernhard.voelker <at> siemens-enterprise.com>
Cc: "12778 <at> debbugs.gnu.org" <12778 <at> debbugs.gnu.org>
Subject: Re: bug#12778: Failure when running check-root make target
Date: Mon, 5 Nov 2012 10:19:23 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 5 Nov 2012 15:46:32 +0000
"Voelker, Bernhard" <bernhard.voelker <at> siemens-enterprise.com> wrote:
> > Does "make NON_ROOT_USERNAME=nobody check-TESTS" run as root in the
> > gnulib-tests/ directory work for you?
> 
> Sure it does. ;-)
> 
> But with sudo it fails for 1 test:
> 
>   $ sudo env PATH="$PATH"  make NON_ROOT_USERNAME=nobody check-TESTS
>   PASS: [...]
>   ../build-aux/test-driver: line 95:  5158 Aborted
> "$@" > $log_file 2>&1 FAIL: test-getlogin

You've uncovered bug #11150, I believe. Is this in an xterm? The
getlogin test fails for me too there (at least, it's done so for a
while), and arguably rightly so. Basically, all that getlogin() does is
to look the TTY it's connected to up in /var/run/utmp. This should list
who's logged in at every terminal. Unfortunately, xterm doesn't write
to /var/run/utmp, so getlogin() fails in this case. Whether you think
this counts as a bug in getlogin() is up to you; anyway, it's different
(I assume) from the issue we were having.

If you want to complain about the getlogin() issue, by the way, 
that should go to the bug-gnulib list (at least, that's where it got
forwarded before).

         -Andrew Warshall
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBAgAGBQJQl9j7AAoJEESPRWh79T7tLaoH/3HDBf6GFl99Z1pUyozENCss
XnVO7n+gwNLAKz0NQM0JXDKh37krUOWEeAyG48+AAX2lYtD0NKQBvuCQFXxYh3Bl
VMKecWOAsdUKzzz5N46IuwotPSR5Hjpvs6K8N5EodQY/kri26wEz29EWMbxatiON
mKqNlXUUFMj7XwBs31NASrEWvuJdkSjPg61eFyqg0R3AHx3SXoX/dwFRKdJ88236
BIxSpHEjzvW4FbzXXzb02FV0e9U4uElv29Cs6odkg0MbSTNURBIgDxfh39/dST5p
9EmGt39JpmaPP/xzC9fd6k/ic9GJatM9dfTXdEZsbDD1bhyEOMdbasyk7PROU98=
=/msi
-----END PGP SIGNATURE-----

This bug report was last modified 12 years and 219 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.