aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/coreutils.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05/coreutils.xml')
-rw-r--r--chapter05/coreutils.xml22
1 files changed, 13 insertions, 9 deletions
diff --git a/chapter05/coreutils.xml b/chapter05/coreutils.xml
index 8a35596a7..e763866ba 100644
--- a/chapter05/coreutils.xml
+++ b/chapter05/coreutils.xml
@@ -43,18 +43,22 @@
<sect2 role="installation">
<title>Installation of Coreutils</title>
- <para>The version of the function <quote>futimens</quote> used
- by Coreutils is incompatible with the version that current
- Glibc provides, so we'll rename the function:</para>
+ <para>Prepare Coreutils for compilation:</para>
-<screen><userinput remap="pre">for file in src/{copy,touch}.c lib/utimens.{c,h} ; do \
- cp -v $file{,.orig}
- sed 's/futimens/gl_&amp;/' $file.orig &gt; $file
-done</userinput></screen>
+<screen><userinput remap="configure">./configure --prefix=/tools --enable-install-program=hostname</userinput></screen>
- <para>Prepare Coreutils for compilation:</para>
+ <variablelist>
+ <title>The meaning of the configure options:</title>
-<screen><userinput remap="configure">./configure --prefix=/tools</userinput></screen>
+ <varlistentry>
+ <term><envar>--enable-install-program=hostname</envar></term>
+ <listitem>
+ <para>This enables the <command>hostname</command> binary to be built
+ and installed &ndash; it is disabled by default but is required by the
+ Perl test suite.</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
<para>Compile the package:</para>