source: temp-system/common/coreutils.xml@ 2659c74

Last change on this file since 2659c74 was 2659c74, checked in by Jim Gifford <clfs@…>, 19 years ago

r677@server (orig r675): manuel | 2005-11-10 03:13:57 -0800
Including patches.ent from general.ent

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