Browse Source

Move creation of /etc/hosts in Perl, to remove another ICA difference.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7258 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Ken Moffat 19 years ago
parent
commit
f76cde828d
3 changed files with 12 additions and 7 deletions
  1. 5 0
      chapter01/changelog.xml
  2. 6 6
      chapter06/perl.xml
  3. 1 1
      chapter07/hosts.xml

+ 5 - 0
chapter01/changelog.xml

@@ -124,6 +124,11 @@ First a summary, then a detailed log.</para>
 </itemizedlist>
 </itemizedlist>
 </listitem>
 </listitem>
 
 
+<listitem><para>January 7, 2006 [ken]: Alter the Perl instructions to
+always create an /etc/hosts file.  This fixes a potential difference in
+the 'hostcat' recorded in Config_heavy.pl.  Thanks to Bryan Kadzban for
+explaining this.</para></listitem>
+
 <listitem><para>January 7, 2006 [ken]: Move grep ahead of libtool, so
 <listitem><para>January 7, 2006 [ken]: Move grep ahead of libtool, so
 that the latter will correctly reference /bin/grep in references to EGREP.
 that the latter will correctly reference /bin/grep in references to EGREP.
 </para></listitem>
 </para></listitem>

+ 6 - 6
chapter06/perl.xml

@@ -28,6 +28,12 @@ Gawk, GCC, Glibc, Grep, Make, and Sed</seg></seglistitem>
 <sect2 role="installation">
 <sect2 role="installation">
 <title>Installation of Perl</title>
 <title>Installation of Perl</title>
 
 
+<para>First create a basic <filename>/etc/hosts</filename> file which will be
+referenced in one of Perl's configuration files as well as being used used by
+the testsuite if you run that.</para>
+
+<screen><userinput>echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
+
 <para>To have full control over the way Perl is set up, run the
 <para>To have full control over the way Perl is set up, run the
 interactive <command>Configure</command> script and hand-pick the way
 interactive <command>Configure</command> script and hand-pick the way
 this package is built. If the defaults it auto-detects are suitable,
 this package is built. If the defaults it auto-detects are suitable,
@@ -50,12 +56,6 @@ prepare Perl for compilation with:</para>
 
 
 <screen><userinput>make</userinput></screen>
 <screen><userinput>make</userinput></screen>
 
 
-<para>To run the test suite, first create a basic
-<filename>/etc/hosts</filename> file which is needed by a couple of the tests to
-resolve the network name localhost:</para>
-
-<screen><userinput>echo "127.0.0.1 localhost $(hostname)" &gt; /etc/hosts</userinput></screen>
-
 <para>Now run the tests, if desired:</para>
 <para>Now run the tests, if desired:</para>
 
 
 <screen><userinput>make test</userinput></screen>
 <screen><userinput>make test</userinput></screen>

+ 1 - 1
chapter07/hosts.xml

@@ -8,7 +8,7 @@
 <sect1 id="ch-scripts-hosts">
 <sect1 id="ch-scripts-hosts">
   <?dbhtml filename="hosts.html"?>
   <?dbhtml filename="hosts.html"?>
 
 
-  <title>Creating the /etc/hosts File</title>
+  <title>Customizing the /etc/hosts File</title>
 
 
   <indexterm zone="ch-scripts-hosts">
   <indexterm zone="ch-scripts-hosts">
     <primary sortas="e-/etc/hosts">/etc/hosts</primary>
     <primary sortas="e-/etc/hosts">/etc/hosts</primary>