2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-03-21 18:42:58 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2006-01-17 20:43:10 +00:00
|
|
|
|
2004-05-16 01:06:08 +01:00
|
|
|
<sect1 id="ch-tools-coreutils" role="wrap">
|
2006-01-17 20:43:10 +00:00
|
|
|
<?dbhtml filename="coreutils.html"?>
|
|
|
|
|
2007-09-07 20:16:43 +01:00
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>coreutils</productname>
|
|
|
|
<productnumber>&coreutils-version;</productnumber>
|
|
|
|
<address>&coreutils-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
2006-01-17 20:43:10 +00:00
|
|
|
<title>Coreutils-&coreutils-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="ch-tools-coreutils">
|
|
|
|
<primary sortas="a-Coreutils">Coreutils</primary>
|
|
|
|
<secondary>tools</secondary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title/>
|
2003-05-02 19:20:20 +01:00
|
|
|
|
2006-01-17 20:43:10 +00:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
|
|
|
href="../chapter06/coreutils.xml"
|
|
|
|
xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-01-17 20:43:10 +00:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2006-01-17 20:43:10 +00:00
|
|
|
<seglistitem>
|
2006-05-14 21:16:56 +01:00
|
|
|
<seg>&coreutils-ch5-sbu;</seg>
|
|
|
|
<seg>&coreutils-ch5-du;</seg>
|
2006-01-17 20:43:10 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2006-01-17 20:43:10 +00:00
|
|
|
</sect2>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-01-17 20:43:10 +00:00
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Coreutils</title>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2008-02-07 19:47:39 +00:00
|
|
|
<para>Prepare Coreutils for compilation:</para>
|
2007-09-16 01:21:26 +01:00
|
|
|
|
2008-02-07 19:47:39 +00:00
|
|
|
<screen><userinput remap="configure">./configure --prefix=/tools --enable-install-program=hostname</userinput></screen>
|
2007-09-16 01:21:26 +01:00
|
|
|
|
2008-02-07 19:47:39 +00:00
|
|
|
<variablelist>
|
|
|
|
<title>The meaning of the configure options:</title>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2008-02-07 19:47:39 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term><envar>--enable-install-program=hostname</envar></term>
|
|
|
|
<listitem>
|
|
|
|
<para>This enables the <command>hostname</command> binary to be built
|
|
|
|
and installed – it is disabled by default but is required by the
|
|
|
|
Perl test suite.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-01-17 20:43:10 +00:00
|
|
|
<para>Compile the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2008-11-05 21:44:06 +00:00
|
|
|
<para>Compilation is now complete. As discussed earlier, running the test
|
|
|
|
suite is not mandatory for the temporary tools here in this chapter. To run
|
|
|
|
the Coreutils test suite anyway, issue the following command:</para>
|
2007-09-18 22:11:00 +01:00
|
|
|
|
|
|
|
<screen><userinput remap="test">make RUN_EXPENSIVE_TESTS=yes check</userinput></screen>
|
|
|
|
|
|
|
|
<para>The <parameter>RUN_EXPENSIVE_TESTS=yes</parameter> parameter tells the
|
2006-01-17 20:43:10 +00:00
|
|
|
test suite to run several additional tests that are considered
|
|
|
|
relatively expensive (in terms of CPU power and memory usage) on some
|
|
|
|
platforms, but generally are not a problem on Linux.</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2006-01-17 20:43:10 +00:00
|
|
|
<para>Install the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2007-04-03 13:21:48 +01:00
|
|
|
<para>The above command refuses to install <filename>su</filename>
|
2008-10-30 06:52:46 +00:00
|
|
|
because the program cannot be installed setuid root as a non-privileged
|
|
|
|
user. By manually installing it with a different name, we can use it for
|
|
|
|
running tests in the final system as a non-privileged user and we keep a
|
|
|
|
possibly useful <command>su</command> from our host first in our PATH.
|
|
|
|
Install it with:</para>
|
2007-04-03 13:21:48 +01:00
|
|
|
|
2007-09-18 22:11:00 +01:00
|
|
|
<screen><userinput remap="install">cp -v src/su /tools/bin/su-tools</userinput></screen>
|
2007-04-03 13:21:48 +01:00
|
|
|
|
2006-01-17 20:43:10 +00:00
|
|
|
</sect2>
|
2003-05-02 19:20:20 +01:00
|
|
|
|
2006-01-17 20:43:10 +00:00
|
|
|
<sect2 role="content">
|
|
|
|
<title/>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-01-17 20:43:10 +00:00
|
|
|
<para>Details on this package are located in
|
|
|
|
<xref linkend="contents-coreutils" role="."/></para>
|
|
|
|
|
|
|
|
</sect2>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-01-17 20:43:10 +00:00
|
|
|
</sect1>
|