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;.
|
|
|
|
Without the patch below, some of the Coreutils utilities (head, tail, sort etc)
|
|
|
|
will reject their traditional syntax which has been in use for approximately 30
|
|
|
|
years. The old syntax is so pervasive that compatibility must be preserved until
|
|
|
|
the many places where it is used can be updated. More details are provided in
|
|
|
|
the comments inside the patch itself. Use of this patch is by no means
|
|
|
|
compulsory but opting not to use it means you'll have deal with the consequences
|
|
|
|
yourself, i.e. patch the many software packages that use the old syntax. Apply
|
|
|
|
the patch:</para>
|
|
|
|
|
|
|
|
<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-01-16 10:15:49 +00:00
|
|
|
<para>As discussed earlier, we don't recommend running the test suites for the
|
|
|
|
temporary tools here in this chapter. If you still want to run the Coreutils
|
|
|
|
test suite anyway, the following command will do so:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>make RUN_EXPENSIVE_TESTS=yes check</userinput></screen>
|
|
|
|
|
2003-11-03 22:47:39 +00:00
|
|
|
<para>The meaning of the make parameter:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem><para><userinput>RUN_EXPENSIVE_TESTS=yes</userinput>: This tells the
|
|
|
|
test suite to run several additional tests that are considered relatively
|
|
|
|
expensive on some platforms. However, they are generally not a problem on
|
|
|
|
Linux.</para></listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|