[bf8c11f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | <!ENTITY % patches-entities SYSTEM "../../patches.ent">
|
---|
| 6 | %general-entities;
|
---|
| 7 | %patches-entities;
|
---|
| 8 | ]>
|
---|
| 9 |
|
---|
| 10 | <sect1 id="ch-temp-system-coreutils" role="wrap">
|
---|
| 11 | <?dbhtml filename="coreutils.html"?>
|
---|
| 12 |
|
---|
| 13 | <title>Coreutils-&coreutils-version;</title>
|
---|
| 14 |
|
---|
| 15 | <indexterm zone="ch-temp-system-coreutils">
|
---|
| 16 | <primary sortas="a-Coreutils">Coreutils</primary>
|
---|
| 17 | <secondary>temporary system</secondary>
|
---|
| 18 | </indexterm>
|
---|
| 19 |
|
---|
[3b9c9f7] | 20 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 21 | href="../../final-system/common/coreutils.xml"
|
---|
| 22 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
[bf8c11f] | 23 |
|
---|
| 24 | <sect2 role="installation">
|
---|
| 25 | <title>Installation of Coreutils</title>
|
---|
| 26 |
|
---|
| 27 | <para os="ba">Coreutils has an issue where UTILS_OPEN_MAX does not get
|
---|
| 28 | defined when cross-compiling. So we define it:</para>
|
---|
| 29 |
|
---|
| 30 | <screen os="bc"><userinput>echo "utils_cv_sys_open_max=1024" >> config.cache</userinput></screen>
|
---|
| 31 |
|
---|
| 32 | <para os="bd">Prepare Coreutils for compilation:</para>
|
---|
| 33 |
|
---|
[abaa676] | 34 | <screen><userinput>./configure --prefix=/tools --cache-file=config.cache \
|
---|
[bf8c11f] | 35 | --build=${LFS_HOST} --host=${LFS_TARGET}</userinput></screen>
|
---|
| 36 |
|
---|
| 37 | <variablelist os="be">
|
---|
| 38 | <title>The meaning of the configure options:</title>
|
---|
| 39 |
|
---|
| 40 | <varlistentry>
|
---|
| 41 | <term><parameter>DEFAULT_POSIX2_VERSION=199209</parameter></term>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>This package has an issue when compiled against versions of
|
---|
| 44 | Glibc later than 2.3.2. Some of the Coreutils utilities (such as
|
---|
| 45 | <command>head</command>, <command>tail</command>, and
|
---|
| 46 | <command>sort</command>) will reject their traditional syntax, a
|
---|
| 47 | syntax that has been in use for approximately 30 years. This old
|
---|
| 48 | syntax is so pervasive that compatibility should be preserved until
|
---|
| 49 | the many places where it is used can be updated. Backwards compatibility
|
---|
| 50 | is achieved by setting the <envar>DEFAULT_POSIX2_VERSION</envar>
|
---|
| 51 | environment variable to <quote>199209</quote> in the above command.
|
---|
| 52 | If you do not want Coreutils to be backwards compatible with the
|
---|
| 53 | traditional syntax, then omit setting the
|
---|
| 54 | <envar>DEFAULT_POSIX2_VERSION</envar> environment variable. It is
|
---|
| 55 | important to remember that doing so will have consequences, including
|
---|
| 56 | the need to patch the many packages that still use the old syntax.
|
---|
| 57 | Therefore, it is recommended that the instructions be followed exactly
|
---|
| 58 | as given above.</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </varlistentry>
|
---|
| 61 |
|
---|
| 62 | <varlistentry>
|
---|
| 63 | <term><parameter>--cache-file=config.cache</parameter></term>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>This do ...</para>
|
---|
| 66 | </listitem>
|
---|
| 67 | </varlistentry>
|
---|
| 68 |
|
---|
| 69 | </variablelist>
|
---|
| 70 |
|
---|
| 71 | <para os="bf">Compile the package:</para>
|
---|
| 72 |
|
---|
| 73 | <screen os="bg"><userinput>make</userinput></screen>
|
---|
| 74 |
|
---|
| 75 | <para os="bh">Install the package:</para>
|
---|
| 76 |
|
---|
| 77 | <screen os="bi"><userinput>make install</userinput></screen>
|
---|
| 78 |
|
---|
| 79 | </sect2>
|
---|
| 80 |
|
---|
| 81 | <sect2 role="content">
|
---|
| 82 | <title/>
|
---|
| 83 |
|
---|
| 84 | <para>Details on this package are located in <xref
|
---|
| 85 | linkend="contents-coreutils" role="."/></para>
|
---|
| 86 |
|
---|
| 87 | </sect2>
|
---|
| 88 |
|
---|
| 89 | </sect1>
|
---|