mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 05:27:39 +00:00
d0a6c4c212
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3177 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
65 lines
2.3 KiB
XML
65 lines
2.3 KiB
XML
<sect1 id="ch05-coreutils">
|
|
<title>Installing Coreutils-&coreutils-version;</title>
|
|
<?dbhtml filename="coreutils.html" dir="chapter05"?>
|
|
|
|
<screen>Estimated build time: &coreutils-time-tools;
|
|
Estimated required disk space: &coreutils-compsize-tools;</screen>
|
|
|
|
<literallayout>Official download location for Coreutils (&coreutils-version;):
|
|
<ulink url="ftp://ftp.gnu.org/gnu/coreutils/"/></literallayout>
|
|
|
|
&aa-coreutils-dep;
|
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
<sect2>
|
|
<title>Installation of Coreutils</title>
|
|
|
|
<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>
|
|
|
|
<screen><userinput>./configure --prefix=/tools</userinput></screen>
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
<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>
|
|
|
|
<screen><userinput>make RUN_EXPENSIVE_TESTS=yes check</userinput></screen>
|
|
|
|
<para>The meaning of the make parameter:</para>
|
|
|
|
<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>
|
|
|
|
<sect2><title> </title><para> </para>
|
|
<para>The details on this package are found in <xref linkend="contents-coreutils"/>.</para>
|
|
<para> </para></sect2>
|
|
|
|
</sect1>
|
|
|