Bug#885967: #885967: FTBFS: FAILED test of gethostid ENOENT
} PATH=`pwd`/bin:$PATH /bin/sh test/07/t0705a.sh
} 2,3c2,3
} < (ENOENT) because there is no "hostid" regular file in the pathname "/etc"
} < directory; did you mean the "hosts" regular file instead?
} ---
} > (ENOENT) because there is no "hostid" regular file in the pathname
} > "/etc" directory
} FAILED test of gethostid ENOENT
Adrian Bunk wrote:
> /etc/hosts is created in the postinst of the netbase package,
> so "missing build dependency on netbase" would be another way
> to describe the problem.
Not sure if this is the best way to fix the failure, although it _would_
make the error message find /etc/hosts there so it can be suggested.
This test is fragile, though -- if you have a file named /etc/hosting or
such, it'll be picked instead of "hosts".
The root cause, though, is that libexplain knows about gethostid, thus it
can rule out an user making a typo -- the function looks for /etc/hostid and
hothing else.
Meow!
--
// If you believe in so-called "intellectual property", please immediately
// cease using counterfeit alphabets. Instead, contact the nearest temple
// of Amon, whose priests will provide you with scribal services for all
// your writing needs, for Reasonable And Non-Discriminatory prices.
Reply to: