bug-inetutils
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]