source: chapter05/coreutils.xml@ d0a6c4c

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.0 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk v5_1 v5_1_1 xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since d0a6c4c was d0a6c4c, checked in by Greg Schafer <greg@…>, 20 years ago

Upgraded to Glibc-2.3.3, Kbd-1.12, Perl-5.8.3 and Shadow-4.0.4.1.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3177 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.3 KB
Line 
1<sect1 id="ch05-coreutils">
2<title>Installing Coreutils-&coreutils-version;</title>
3<?dbhtml filename="coreutils.html" dir="chapter05"?>
4
5<screen>Estimated build time: &coreutils-time-tools;
6Estimated required disk space: &coreutils-compsize-tools;</screen>
7
8<literallayout>Official download location for Coreutils (&coreutils-version;):
9<ulink url="ftp://ftp.gnu.org/gnu/coreutils/"/></literallayout>
10
11&aa-coreutils-dep;
12
13<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
14
15<sect2>
16<title>Installation of Coreutils</title>
17
18<para>Coreutils has an issue when compiled against Glibc-&glibc-version;.
19Without the patch below, some of the Coreutils utilities (head, tail, sort etc)
20will reject their traditional syntax which has been in use for approximately 30
21years. The old syntax is so pervasive that compatibility must be preserved until
22the many places where it is used can be updated. More details are provided in
23the comments inside the patch itself. Use of this patch is by no means
24compulsory but opting not to use it means you'll have deal with the consequences
25yourself, i.e. patch the many software packages that use the old syntax. Apply
26the patch:</para>
27
28<screen><userinput>patch -Np1 -i ../&coreutils-posixver-patch;</userinput></screen>
29
30<para>Now prepare Coreutils for compilation:</para>
31
32<screen><userinput>./configure --prefix=/tools</userinput></screen>
33
34<para>Compile the package:</para>
35
36<screen><userinput>make</userinput></screen>
37
38<para>As discussed earlier, we don't recommend running the test suites for the
39temporary tools here in this chapter. If you still want to run the Coreutils
40test suite anyway, the following command will do so:</para>
41
42<screen><userinput>make RUN_EXPENSIVE_TESTS=yes check</userinput></screen>
43
44<para>The meaning of the make parameter:</para>
45
46<itemizedlist>
47<listitem><para><userinput>RUN_EXPENSIVE_TESTS=yes</userinput>: This tells the
48test suite to run several additional tests that are considered relatively
49expensive on some platforms. However, they are generally not a problem on
50Linux.</para></listitem>
51</itemizedlist>
52
53<para>And install the package:</para>
54
55<screen><userinput>make install</userinput></screen>
56
57</sect2>
58
59<sect2><title>&nbsp;</title><para>&nbsp;</para>
60<para>The details on this package are found in <xref linkend="contents-coreutils"/>.</para>
61<para>&nbsp;</para></sect2>
62
63</sect1>
64
Note: See TracBrowser for help on using the repository browser.