1 <sect1 id="ch-tools-coreutils">
2 <title>Installing Coreutils-&coreutils-version;</title>
3 <?dbhtml filename="coreutils.html" dir="chapter05"?>
5 <screen>&buildtime; &coreutils-time-tools;
6 &diskspace; &coreutils-compsize-tools;</screen>
8 <literallayout>Official download location for Coreutils (&coreutils-version;):
9 <ulink url="ftp://ftp.gnu.org/gnu/coreutils/"/>
11 <ulink url="&patches-root;&coreutils-posixver-patch;"/></literallayout>
15 <sect2><title> </title><para> </para></sect2>
18 <title>Installation of Coreutils</title>
20 <para>Coreutils has an issue when compiled against Glibc-&glibc-version;.
21 Without the patch below, some of the Coreutils utilities (head, tail, sort etc)
22 will reject their traditional syntax which has been in use for approximately 30
23 years. The old syntax is so pervasive that compatibility must be preserved until
24 the many places where it is used can be updated. More details are provided in
25 the comments inside the patch itself. Use of this patch is by no means
26 compulsory but opting not to use it means you'll have deal with the consequences
27 yourself, i.e. patch the many software packages that use the old syntax. Apply
30 <screen><userinput>patch -Np1 -i ../&coreutils-posixver-patch;</userinput></screen>
32 <para>Now prepare Coreutils for compilation:</para>
34 <screen><userinput>./configure --prefix=/tools</userinput></screen>
36 <para>Compile the package:</para>
38 <screen><userinput>make</userinput></screen>
40 <para>As discussed earlier, we don't recommend running the test suites for the
41 temporary tools here in this chapter. If you still want to run the Coreutils
42 test suite anyway, the following command will do so:</para>
44 <screen><userinput>make RUN_EXPENSIVE_TESTS=yes check</userinput></screen>
46 <para>The meaning of the make parameter:</para>
49 <listitem><para><userinput>RUN_EXPENSIVE_TESTS=yes</userinput>: This tells the
50 test suite to run several additional tests that are considered relatively
51 expensive on some platforms. However, they are generally not a problem on
52 Linux.</para></listitem>
55 <para>And install the package:</para>
57 <screen><userinput>make install</userinput></screen>
61 <sect2><title> </title><para> </para>
62 <para>The details on this package are found in <xref linkend="contents-coreutils"/>.</para>
63 <para> </para></sect2>