[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[09fb7a09] | 7 |
|
---|
[9652249] | 8 | <sect1 id="ch-tools-coreutils" role="wrap">
|
---|
[09fb7a09] | 9 | <?dbhtml filename="coreutils.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Coreutils-&coreutils-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-tools-coreutils">
|
---|
| 14 | <primary sortas="a-Coreutils">Coreutils</primary>
|
---|
| 15 | <secondary>tools</secondary>
|
---|
| 16 | </indexterm>
|
---|
| 17 |
|
---|
| 18 | <sect2 role="package">
|
---|
| 19 | <title/>
|
---|
[bc82645e] | 20 |
|
---|
[09fb7a09] | 21 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 22 | href="../chapter06/coreutils.xml"
|
---|
| 23 | xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
|
---|
[81fd230] | 24 |
|
---|
[09fb7a09] | 25 | <segmentedlist>
|
---|
| 26 | <segtitle>&buildtime;</segtitle>
|
---|
| 27 | <segtitle>&diskspace;</segtitle>
|
---|
[5888299] | 28 |
|
---|
[09fb7a09] | 29 | <seglistitem>
|
---|
[e4a5635] | 30 | <seg>&coreutils-ch5-sbu;</seg>
|
---|
| 31 | <seg>&coreutils-ch5-du;</seg>
|
---|
[09fb7a09] | 32 | </seglistitem>
|
---|
| 33 | </segmentedlist>
|
---|
[673b0d8] | 34 |
|
---|
[09fb7a09] | 35 | </sect2>
|
---|
[73aedd1d] | 36 |
|
---|
[09fb7a09] | 37 | <sect2 role="installation">
|
---|
| 38 | <title>Installation of Coreutils</title>
|
---|
[73aedd1d] | 39 |
|
---|
[09fb7a09] | 40 | <para>Prepare Coreutils for compilation:</para>
|
---|
[673b0d8] | 41 |
|
---|
[6b59895] | 42 | <screen><userinput>./configure --prefix=/tools</userinput></screen>
|
---|
[81fd230] | 43 |
|
---|
[09fb7a09] | 44 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 45 |
|
---|
| 46 | <screen><userinput>make</userinput></screen>
|
---|
| 47 |
|
---|
[09fb7a09] | 48 | <para>To test the results, issue:
|
---|
| 49 | <userinput>make RUN_EXPENSIVE_TESTS=yes check</userinput>. The
|
---|
| 50 | <parameter>RUN_EXPENSIVE_TESTS=yes</parameter> parameter tells the
|
---|
| 51 | test suite to run several additional tests that are considered
|
---|
| 52 | relatively expensive (in terms of CPU power and memory usage) on some
|
---|
| 53 | platforms, but generally are not a problem on Linux.</para>
|
---|
[73aedd1d] | 54 |
|
---|
[09fb7a09] | 55 | <para>Install the package:</para>
|
---|
[73aedd1d] | 56 |
|
---|
| 57 | <screen><userinput>make install</userinput></screen>
|
---|
| 58 |
|
---|
[f4c628c] | 59 | <para>The above command refuses to install <filename>su</filename>
|
---|
| 60 | because it cannot install it setuid root as a non-privileged user. By
|
---|
| 61 | manually installing it with a different name, we can use it for running
|
---|
| 62 | tests in the final system as a non-privileged user and we keep a possibly
|
---|
| 63 | useful <command>su</command> from our host first place in our PATH. Install
|
---|
| 64 | it with:</para>
|
---|
| 65 |
|
---|
| 66 | <screen><userinput>cp -v src/su /tools/bin/su-tools</userinput></screen>
|
---|
| 67 |
|
---|
[09fb7a09] | 68 | </sect2>
|
---|
[bc82645e] | 69 |
|
---|
[09fb7a09] | 70 | <sect2 role="content">
|
---|
| 71 | <title/>
|
---|
[81fd230] | 72 |
|
---|
[09fb7a09] | 73 | <para>Details on this package are located in
|
---|
| 74 | <xref linkend="contents-coreutils" role="."/></para>
|
---|
| 75 |
|
---|
| 76 | </sect2>
|
---|
[81fd230] | 77 |
|
---|
[09fb7a09] | 78 | </sect1>
|
---|