On Fri, Jan 06, 2006 at 12:57:01PM +0000, Ken Moffat wrote: > On Thu, 5 Jan 2006, Dan Nicholson wrote: > > >Maybe. Do you know how the hostcat command is used in perl? > > No idea, and I'm not keen to dig into perl. The binaries are accepted > after stripping and converting hte dates to tokens, but some more > comparison won't hurt. >
Well, the perl Configure script used to have some verbiage in it about the gethostname() function not returning the correct hostname in all cases (something about "but it can't be changed for political reasons"). In that case, it offered an option to use the external "hostname" binary or the /etc/hosts file when a program asked for the current hostname. Maybe the hostcat stuff is related to that. (Current perl Configure scripts seem to just use the hostname command, and don't bother with gethostname() at all.) Or actually, the Perl documentation[1] says it's part of the system that allows programs to find out how Perl was configured. The command in the string is supposed to "produce the text of the /etc/hosts file", but I'm not sure what purpose that would necessarily serve. Hmm... It doesn't seem to be used in my LFS 5.something system, but said system is quite old (and I only grepped through stuff in /usr/lib and /usr/bin, I didn't check package build scripts, etc.). I can't check my other (LFS 6.0-pre, IIRC) system at the moment. Regardless, it is a difference, that (IMO at least) should be fixed. The perl installation instructions already have the user create a hosts file before running the perl tests. Maybe it would be a good idea to create it earlier (before ./configure.gnu), then overwrite it when the user sets up networking later (section 7.11). Or remove it after installing Perl. [1] http://www.perl.com/doc/manual/html/lib/Config.html#item_hostcat
pgpFiGW4kRonQ.pgp
Description: PGP signature
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page