source: BOOK/temp-system/common/coreutils.xml @ 3f8be484

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 3f8be484 was 3f8be484, checked in by Jim Gifford <clfs@…>, 18 years ago

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

  • Property mode set to 100644
File size: 3.7 KB
Line 
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
20  <sect2 role="package">
21    <title/>
22
23    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
24    href="../../final-system/common/coreutils.xml"
25    xpointer="xpointer(//*[@role='package']/para[1])"/>
26
27    <segmentedlist>
28      <segtitle>&buildtime;</segtitle>
29      <segtitle>&diskspace;</segtitle>
30
31      <seglistitem>
32        <seg>Not checked yet</seg>
33        <seg>Not checked yet</seg>
34      </seglistitem>
35    </segmentedlist>
36
37    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
38    href="../../final-system/common/coreutils.xml"
39    xpointer="xpointer(//*[@role='package']/segmentedlist[2])"/>
40
41  </sect2>
42
43  <sect2 role="installation">
44    <title>Installation of Coreutils</title>
45
46    <para os="ba">Coreutils has an issue where  UTILS_OPEN_MAX does not get
47    defined when cross-compiling. So we define it:</para>
48
49<screen os="bc"><userinput>echo "utils_cv_sys_open_max=1024" &gt;&gt; config.cache</userinput></screen>
50
51    <para os="bd">Prepare Coreutils for compilation:</para>
52
53<screen><userinput>DEFAULT_POSIX2_VERSION=199209 \
54   ./configure --prefix=/tools --cache-file=config.cache \
55   --build=${LFS_HOST} --host=${LFS_TARGET}</userinput></screen>
56
57    <variablelist os="be">
58      <title>The meaning of the configure options:</title>
59
60      <varlistentry>
61        <term><parameter>DEFAULT_POSIX2_VERSION=199209</parameter></term>
62        <listitem>
63          <para>This package has an issue when compiled against versions of
64          Glibc later than 2.3.2. Some of the Coreutils utilities (such as
65          <command>head</command>, <command>tail</command>, and
66          <command>sort</command>) will reject their traditional syntax, a
67          syntax that has been in use for approximately 30 years. This old
68          syntax is so pervasive that compatibility should be preserved until
69          the many places where it is used can be updated. Backwards compatibility
70          is achieved by setting the <envar>DEFAULT_POSIX2_VERSION</envar>
71          environment variable to <quote>199209</quote> in the above command.
72          If you do not want Coreutils to be backwards compatible with the
73          traditional syntax, then omit setting the
74          <envar>DEFAULT_POSIX2_VERSION</envar> environment variable. It is
75          important to remember that doing so will have consequences, including
76          the need to patch the many packages that still use the old syntax.
77          Therefore, it is recommended that the instructions be followed exactly
78          as given above.</para>
79        </listitem>
80      </varlistentry>
81
82      <varlistentry>
83        <term><parameter>--cache-file=config.cache</parameter></term>
84        <listitem>
85          <para>This do ...</para>
86        </listitem>
87      </varlistentry>
88
89    </variablelist>
90
91    <para os="bf">Compile the package:</para>
92
93<screen os="bg"><userinput>make</userinput></screen>
94
95    <para os="bh">Install the package:</para>
96
97<screen os="bi"><userinput>make install</userinput></screen>
98
99  </sect2>
100
101  <sect2 role="content">
102    <title/>
103
104    <para>Details on this package are located in <xref
105    linkend="contents-coreutils" role="."/></para>
106
107  </sect2>
108
109</sect1>
Note: See TracBrowser for help on using the repository browser.