2004-01-27 22:29:49 +00:00
|
|
|
<sect1 id="ch-tools-coreutils">
|
2003-05-02 19:20:20 +01:00
|
|
|
<title>Installing Coreutils-&coreutils-version;</title>
|
|
|
|
<?dbhtml filename="coreutils.html" dir="chapter05"?>
|
|
|
|
|
2004-01-27 22:27:44 +00:00
|
|
|
<screen>&buildtime; &coreutils-time-tools;
|
|
|
|
&diskspace; &coreutils-compsize-tools;</screen>
|
2003-08-11 23:49:50 +01:00
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
<literallayout>Official download location for Coreutils (&coreutils-version;):
|
2004-01-21 03:53:35 +00:00
|
|
|
<ulink url="ftp://ftp.gnu.org/gnu/coreutils/"/>
|
2004-02-03 22:18:03 +00:00
|
|
|
And for the patch:
|
2004-01-21 03:53:35 +00:00
|
|
|
<ulink url="&patches-root;&coreutils-posixver-patch;"/></literallayout>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2003-11-15 16:07:18 +00:00
|
|
|
&aa-coreutils-dep;
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Installation of Coreutils</title>
|
|
|
|
|
2004-01-20 05:59:05 +00:00
|
|
|
<para>Coreutils has an issue when compiled against Glibc-&glibc-version;.
|
2004-02-11 22:02:10 +00:00
|
|
|
Without the patch below, some of the Coreutils utilities
|
|
|
|
(<command>head</command>, <command>tail</command>, <command>sort</command>,
|
|
|
|
and others) will reject their traditional syntax which has been in use for
|
|
|
|
approximately 30 years. This old syntax is so pervasive that compatibility
|
|
|
|
should be preserved until the many places where it is used can be updated.
|
|
|
|
More details on this are provided in the comments inside the patch itself. Use
|
|
|
|
of this patch is by no means compulsory, but not using it means you'll have to
|
|
|
|
deal with the consequences yourself: patch the many packages that use the old
|
|
|
|
syntax. Therefore, better apply the patch:</para>
|
2004-01-20 05:59:05 +00:00
|
|
|
|
|
|
|
<screen><userinput>patch -Np1 -i ../&coreutils-posixver-patch;</userinput></screen>
|
|
|
|
|
|
|
|
<para>Now prepare Coreutils for compilation:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>./configure --prefix=/tools</userinput></screen>
|
|
|
|
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
|
2004-02-11 22:02:10 +00:00
|
|
|
<para>(If you insist on testing the results, then issue:
|
|
|
|
<userinput>make RUN_EXPENSIVE_TESTS=yes check</userinput>. The
|
|
|
|
<emphasis>RUN_EXPENSIVE_TESTS=yes</emphasis> parameter tells the test suite to
|
|
|
|
run several additional tests that are considered relatively expensive on some
|
|
|
|
platforms but generally are not a problem on Linux.)</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<para>And install the package:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
2003-05-02 19:20:20 +01:00
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
<sect2><title> </title><para> </para>
|
|
|
|
<para>The details on this package are found in <xref linkend="contents-coreutils"/>.</para>
|
|
|
|
<para> </para></sect2>
|
|
|
|
|
2003-05-02 19:20:20 +01:00
|
|
|
</sect1>
|
|
|
|
|