Hi,

Simon Josefsson <[email protected]> skribis:

> Eelco Dolstra <[email protected]> writes:
>
>> Hi,
>>
>> On 11/30/2011 05:17 PM, Simon Josefsson wrote:
>>
>>> What is the content of /etc/nsswitch.conf on the Hydra build servers?
>>> 
>>> I wonder what glibc does if there is no /etc/nsswitch.conf at all, which
>>> may be the situation on the build servers.
>>
>> Yes, that's the case for the Linux builds.  They're in a chroot that
>> has a extremely miminal /etc (currently, just /etc/passwd and
>> /etc/group with entries for the build uid/gid, and /etc/hosts with an
>> entry for localhost).
>
> What does getservbyname ("ftp", "tcp") return?  If it returns NULL, we
> need to deal with it, but if it hangs or takes a lot of time to timeout
> you may want to have a small /etc/nsswitch.conf or similar.

There’s no /etc/{services,protocols,resolv.conf} in the chroot.  Thus
tests cannot rely on name resolution, getservbyname, etc.  Instead, they
should use numeric values, like 127.0.0.1:21.  (I’ve found it to be an
acceptable workaround in practice.)

Thanks,
Ludo’.

Reply via email to