coreutils.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <sect1 id="ch-tools-coreutils">
  2. <title>Installing Coreutils-&coreutils-version;</title>
  3. <?dbhtml filename="coreutils.html" dir="chapter05"?>
  4. <screen>&buildtime; &coreutils-time-tools;
  5. &diskspace; &coreutils-compsize-tools;</screen>
  6. <literallayout>Official download location for Coreutils (&coreutils-version;):
  7. <ulink url="ftp://ftp.gnu.org/gnu/coreutils/"/>
  8. And for the patch:
  9. <ulink url="&patches-root;&coreutils-posixver-patch;"/></literallayout>
  10. &aa-coreutils-dep;
  11. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  12. <sect2>
  13. <title>Installation of Coreutils</title>
  14. <para>This package has an issue when compiled against Glibc-&glibc-version;.
  15. Without the patch below, some of the Coreutils utilities (such as
  16. (<command>head</command>, <command>tail</command> and <command>sort</command>)
  17. will reject their traditional syntax, a syntax that has been in use for
  18. approximately 30 years. This old syntax is so pervasive that compatibility
  19. should be preserved until the many places where it is used can be updated. More
  20. details on this are provided in the comments inside the patch itself. Use of
  21. this patch is by no means compulsory, but not using it means you'll have to
  22. deal with the consequences yourself: patch the many packages that still use the
  23. old syntax. Therefore, better apply the patch:</para>
  24. <screen><userinput>patch -Np1 -i ../&coreutils-posixver-patch;</userinput></screen>
  25. <para>Now prepare Coreutils for compilation:</para>
  26. <screen><userinput>./configure --prefix=/tools</userinput></screen>
  27. <para>Compile the package:</para>
  28. <screen><userinput>make</userinput></screen>
  29. <para>(If you insist on testing the results, then issue:
  30. <userinput>make RUN_EXPENSIVE_TESTS=yes check</userinput>. The
  31. <emphasis>RUN_EXPENSIVE_TESTS=yes</emphasis> parameter tells the test suite to
  32. run several additional tests that are considered relatively expensive on some
  33. platforms but generally are not a problem on Linux.)</para>
  34. <para>And install the package:</para>
  35. <screen><userinput>make install</userinput></screen>
  36. </sect2>
  37. <sect2><title>&nbsp;</title><para>&nbsp;</para>
  38. <para>The details on this package are found in <xref linkend="contents-coreutils"/>.</para>
  39. <para>&nbsp;</para></sect2>
  40. </sect1>