Use Inetutils' version of hostname, rather than Coreutils' version. Fixes #2364.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8836 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Matthew Burgess 2009-03-12 21:02:01 +00:00
parent d1b03c872e
commit c92413c550
4 changed files with 20 additions and 15 deletions

View File

@ -40,6 +40,11 @@
<listitem>
<para>2009-03-12</para>
<itemizedlist>
<listitem>
<para>[matthew] - Install Inetutils' version of hostname, rather than
Coreutils' version, as it is more featureful. Thanks to Chris Staub &amp;
DJ Lucas. Fixes <ulink url="&lfs-ticket-root;2364">#2364</ulink>.</para>
</listitem>
<listitem>
<para>[matthew] - Build mkswap in chapter 5's Util-Linux-NG as it is
required by the e2fsprogs test suite. Also, remove the now

View File

@ -39,6 +39,7 @@
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="readline.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="bash.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="libtool.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="inetutils.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="perl.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="autoconf.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="automake.xml"/>
@ -51,7 +52,6 @@
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gettext.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="groff.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gzip.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="inetutils.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="iproute2.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="kbd.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="less.xml"/>

View File

@ -64,7 +64,7 @@ esac</userinput></screen>
<para>Now prepare Coreutils for compilation:</para>
<screen><userinput remap="configure">./configure --prefix=/usr --enable-install-program=hostname \
<screen><userinput remap="configure">./configure --prefix=/usr \
--enable-no-install-program=kill,uptime</userinput></screen>
<variablelist>
@ -122,7 +122,7 @@ esac</userinput></screen>
<para>Move programs to the locations specified by the FHS:</para>
<screen><userinput remap="install">mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin
mv -v /usr/bin/{false,hostname,ln,ls,mkdir,mknod,mv,pwd,readlink,rm} /bin
mv -v /usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,readlink,rm} /bin
mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin
mv -v /usr/bin/chroot /usr/sbin</userinput></screen>
@ -146,7 +146,7 @@ mv -v /usr/bin/chroot /usr/sbin</userinput></screen>
<seglistitem>
<seg>base64, basename, cat, chgrp, chmod, chown, chroot, cksum, comm,
cp, csplit, cut, date, dd, df, dir, dircolors, dirname, du, echo, env,
expand, expr, factor, false, fmt, fold, groups, head, hostid, hostname,
expand, expr, factor, false, fmt, fold, groups, head, hostid,
id, install, join, link, ln, logname, ls, md5sum, mkdir, mkfifo, mknod,
mktemp, mv, nice, nl, nohup, od, paste, pathchk, pinky, pr, printenv, printf,
ptx, pwd, readlink, rm, rmdir, seq, sha1sum, sha224sum, sha256sum,
@ -482,16 +482,6 @@ mv -v /usr/bin/chroot /usr/sbin</userinput></screen>
</listitem>
</varlistentry>
<varlistentry id="hostname">
<term><command>hostname</command></term>
<listitem>
<para>Reports or sets the name of the host</para>
<indexterm zone="ch-system-coreutils hostname">
<primary sortas="b-hostname">hostname</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="id">
<term><command>id</command></term>
<listitem>

View File

@ -132,7 +132,7 @@
<segtitle>Installed programs</segtitle>
<seglistitem>
<seg>ftp, ping, ping6, rcp, rlogin, rsh, talk, telnet, and tftp</seg>
<seg>ftp, hostname, ping, ping6, rcp, rlogin, rsh, talk, telnet, and tftp</seg>
</seglistitem>
</segmentedlist>
@ -151,6 +151,16 @@
</listitem>
</varlistentry>
<varlistentry id="hostname">
<term><command>hostname</command></term>
<listitem>
<para>Reports or sets the name of the host</para>
<indexterm zone="ch-system-inetutils hostname">
<primary sortas="b-hostname">hostname</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="ping">
<term><command>ping</command></term>
<listitem>