coreutils.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-tools-coreutils" role="wrap">
  8. <?dbhtml filename="coreutils.html"?>
  9. <title>Coreutils-&coreutils-version;</title>
  10. <indexterm zone="ch-tools-coreutils">
  11. <primary sortas="a-Coreutils">Coreutils</primary>
  12. <secondary>tools</secondary>
  13. </indexterm>
  14. <sect2 role="package">
  15. <title/>
  16. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  17. href="../chapter06/coreutils.xml"
  18. xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
  19. <segmentedlist>
  20. <segtitle>&buildtime;</segtitle>
  21. <segtitle>&diskspace;</segtitle>
  22. <seglistitem>
  23. <seg>&coreutils-ch5-sbu;</seg>
  24. <seg>&coreutils-ch5-du;</seg>
  25. </seglistitem>
  26. </segmentedlist>
  27. </sect2>
  28. <sect2 role="installation">
  29. <title>Installation of Coreutils</title>
  30. <para>The version of the function <quote>futimens</quote> used
  31. by Coreutils is incompatible with the version that current
  32. Glibc provides, so we'll rename the function:</para>
  33. <screen><userinput>for file in src/{copy,touch}.c lib/utimens.{c,h} ; do \
  34. cp -v $file{,.orig}
  35. sed 's/futimens/gl_&amp;/' $file.orig &gt; $file
  36. done</userinput></screen>
  37. <para>Prepare Coreutils for compilation:</para>
  38. <screen><userinput>./configure --prefix=/tools</userinput></screen>
  39. <para>Compile the package:</para>
  40. <screen><userinput>make</userinput></screen>
  41. <para>To test the results, issue:
  42. <userinput>make RUN_EXPENSIVE_TESTS=yes check</userinput>. The
  43. <parameter>RUN_EXPENSIVE_TESTS=yes</parameter> parameter tells the
  44. test suite to run several additional tests that are considered
  45. relatively expensive (in terms of CPU power and memory usage) on some
  46. platforms, but generally are not a problem on Linux.</para>
  47. <para>Install the package:</para>
  48. <screen><userinput>make install</userinput></screen>
  49. <para>The above command refuses to install <filename>su</filename>
  50. because it cannot install it setuid root as a non-privileged user. By
  51. manually installing it with a different name, we can use it for running
  52. tests in the final system as a non-privileged user and we keep a possibly
  53. useful <command>su</command> from our host first place in our PATH. Install
  54. it with:</para>
  55. <screen><userinput>cp -v src/su /tools/bin/su-tools</userinput></screen>
  56. </sect2>
  57. <sect2 role="content">
  58. <title/>
  59. <para>Details on this package are located in
  60. <xref linkend="contents-coreutils" role="."/></para>
  61. </sect2>
  62. </sect1>