[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-inetutils] Tests leave inetd running
From: |
Alfred M. Szmidt |
Subject: |
Re: [bug-inetutils] Tests leave inetd running |
Date: |
Thu, 09 Jun 2011 16:21:01 -0400 |
Thank you all from the quick response. I had some time to debug
this a bit more.
Nice job!
The non-standard location in NixOS was indeed not an issue here,
netstat was in PATH. inetd failed to start due to three reasons:
- environment variable USER is not set in the standard nix
builders
- inetd needs /etc/protocols be available, and as we are building
all packages in a chroot this wasn't available
- ifconfig was not in PATH as it is in <nettools>/sbin
The tests now run successfully. Thanks for the help!
The USER variable not being set, we can fall back on using id in this
case. This is more portable since while USER is quite standard, id is
even more standard and part of POSIX.
/etc/protocols is required to map names to ports and protocols by the
GNU C library. This is a serious bug in how nixos installs the GNU C
library, since the GNU C library depends on this file for
getprotobyname to work; the same goes for /etc/services. This is not
something we can fix directly on our side, other than maybe handling
it more gracefully since we simply use getprotbyname and its friends.
In tftp.sh we try to use our own ifconfig version (since we can depend
on the features and format without using external tools), if and only
if the env. variable IFCONFIG is empty. Was this not the case? In
either case, we shouldn't depend on an external ifconfig since we have
our own that we can use.
- [bug-inetutils] Tests leave inetd running, Rob Vermaas, 2011/06/06
- Re: [bug-inetutils] Tests leave inetd running, Alfred M. Szmidt, 2011/06/07
- Re: [bug-inetutils] Tests leave inetd running, Mats Erik Andersson, 2011/06/07
- Re: [bug-inetutils] Tests leave inetd running, Alfred M. Szmidt, 2011/06/07
- Re: [bug-inetutils] Tests leave inetd running, Rob Vermaas, 2011/06/09
- Re: [bug-inetutils] Tests leave inetd running,
Alfred M. Szmidt <=
- Re: [bug-inetutils] Tests leave inetd running, Mats Erik Andersson, 2011/06/09
- Re: [bug-inetutils] Tests leave inetd running, Rob Vermaas, 2011/06/10
- Re: [bug-inetutils] Tests leave inetd running, Alfred M. Szmidt, 2011/06/10
- Re: [bug-inetutils] Tests leave inetd running, Ludovic Courtès, 2011/06/08
- Re: [bug-inetutils] Tests leave inetd running, Alfred M. Szmidt, 2011/06/08
- Re: [bug-inetutils] Tests leave inetd running, Ludovic Courtès, 2011/06/08
- Re: [bug-inetutils] Tests leave inetd running, Alfred M. Szmidt, 2011/06/08