Opened 17 years ago
Closed 17 years ago
#2364 closed task (fixed)
Couple of issues with hostname programs
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | normal | Milestone: | 7.0 |
| Component: | Book | Version: | SVN |
| Severity: | normal | Keywords: | |
| Cc: |
Description
- Far as I can tell, --enable-install-program=hostname in Chapter 5 Coreutils is redundant since Coreutils is installed in Chapter 6 before Perl anyway.
- Inetutils 1.6 now installs its own hostname program, into /usr/bin. Either that one or Coreutils' version should be disabled ("--disable-hostname" could be added to Inetutils' configure).
Change History (6)
comment:1 by , 17 years ago
| Milestone: | → 7.0 |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
comment:2 by , 17 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
comment:3 by , 17 years ago
From DJ on lfs-book:
Before you do that, does util-linux-ng bring back fqdn capable
hostname? I've been using a shell script to query/write proc/ for hostname for a long time.
Yes, I believe inetutils (not util-linux-ng, sorry, comment 1 had a typo!) does provide a fqdn capable hostname:
matthew@kyoto:~/sources/inetutils-1.6/hostname$ ./hostname --help
Usage: hostname [OPTION...] [NAME]
Show or set the system's host name.
-a, --aliases, --alias Alias names
-d, --domain DNS domain name
-f, --fqdn, --long DNS host name or FQDN
-F, --file=FILE Read host name or NIS domain name from FILE
-i, --ip-addresses, --ip-address
Addresses for the host name
-s, --short Short host name
-y, --yp, --nis NIS/YP domain name
-?, --help give this help list
--usage give a short usage message
-V, --version print program version
So, do we instead want to disable Coreutils' version by removing the '--enable-install-program=hostname' from chapter06/coreutils.xml and moving Inetutils up in the build order to before Perl?
Regards,
Matt.
comment:4 by , 17 years ago
Actually if you wanted to prefer the Inetutils hostname, you could just remove hostname from Chapter 6 Coreutils and do nothing else - Perl could just use the hostname program provided by Coreutils in /tools.
comment:5 by , 17 years ago
Yeah, I thought of that too, Chris. I'd rather we exercise the version of the program we're going to ultimately be running though, just in case there are any compatibility issues.

Chris, I think the --enable-install-program=hostname is given so that the Perl test suite can be run in Chapter 5, if so desired by the reader.
I'll add the --disable-hostname parameter to util-linux-ng though. Our use of it in /etc/rc.d/init.d/localnet only requires the basic utility provided by Coreutils.