1 | <sect1 id="ch-tools-coreutils">
|
---|
2 | <title>Installing Coreutils-&coreutils-version;</title>
|
---|
3 | <?dbhtml filename="coreutils.html" dir="chapter05"?>
|
---|
4 |
|
---|
5 | <screen>&buildtime; &coreutils-time-tools;
|
---|
6 | &diskspace; &coreutils-compsize-tools;</screen>
|
---|
7 |
|
---|
8 | <literallayout>Official download location for Coreutils (&coreutils-version;):
|
---|
9 | <ulink url="ftp://ftp.gnu.org/gnu/coreutils/"/>
|
---|
10 | And for the patch:
|
---|
11 | <ulink url="&patches-root;&coreutils-posixver-patch;"/></literallayout>
|
---|
12 |
|
---|
13 | &aa-coreutils-dep;
|
---|
14 |
|
---|
15 | <sect2><title> </title><para> </para></sect2>
|
---|
16 |
|
---|
17 | <sect2>
|
---|
18 | <title>Installation of Coreutils</title>
|
---|
19 |
|
---|
20 | <para>This package has an issue when compiled against Glibc-&glibc-version;.
|
---|
21 | Without the patch below, some of the Coreutils utilities (such as
|
---|
22 | (<command>head</command>, <command>tail</command> and <command>sort</command>)
|
---|
23 | will reject their traditional syntax, a syntax that has been in use for
|
---|
24 | approximately 30 years. This old syntax is so pervasive that compatibility
|
---|
25 | should be preserved until the many places where it is used can be updated. More
|
---|
26 | details on this are provided in the comments inside the patch itself. Use of
|
---|
27 | this patch is by no means compulsory, but not using it means you'll have to
|
---|
28 | deal with the consequences yourself: patch the many packages that still use the
|
---|
29 | old syntax. Therefore, better apply the patch:</para>
|
---|
30 |
|
---|
31 | <screen><userinput>patch -Np1 -i ../&coreutils-posixver-patch;</userinput></screen>
|
---|
32 |
|
---|
33 | <para>Now prepare Coreutils for compilation:</para>
|
---|
34 |
|
---|
35 | <screen><userinput>./configure --prefix=/tools</userinput></screen>
|
---|
36 |
|
---|
37 | <para>Compile the package:</para>
|
---|
38 |
|
---|
39 | <screen><userinput>make</userinput></screen>
|
---|
40 |
|
---|
41 | <para>(If you insist on testing the results, then issue:
|
---|
42 | <userinput>make RUN_EXPENSIVE_TESTS=yes check</userinput>. The
|
---|
43 | <emphasis>RUN_EXPENSIVE_TESTS=yes</emphasis> parameter tells the test suite to
|
---|
44 | run several additional tests that are considered relatively expensive on some
|
---|
45 | platforms but generally are not a problem on Linux.)</para>
|
---|
46 |
|
---|
47 | <para>And install the package:</para>
|
---|
48 |
|
---|
49 | <screen><userinput>make install</userinput></screen>
|
---|
50 |
|
---|
51 | </sect2>
|
---|
52 |
|
---|
53 | <sect2><title> </title><para> </para>
|
---|
54 | <para>The details on this package are found in <xref linkend="contents-coreutils"/>.</para>
|
---|
55 | <para> </para></sect2>
|
---|
56 |
|
---|
57 | </sect1>
|
---|
58 |
|
---|