coreutils.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-coreutils" xreflabel="Coreutils" role="wrap">
  7. <title>Coreutils-&coreutils-version;</title>
  8. <?dbhtml filename="coreutils.html"?>
  9. <indexterm zone="ch-system-coreutils"><primary sortas="a-Coreutils">Coreutils</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <segmentedlist>
  12. <segtitle>&buildtime;</segtitle>
  13. <segtitle>&diskspace;</segtitle>
  14. <seglistitem><seg>0.9 SBU</seg><seg>69 MB</seg></seglistitem>
  15. </segmentedlist>
  16. </sect2>
  17. <sect2 role="installation">
  18. <title>Installation of Coreutils</title>
  19. <para>Apply a patch:</para>
  20. <screen><userinput>patch -Np1 -i ../coreutils-&coreutils-version;-uname-2.patch</userinput></screen>
  21. <para>Apply another patch:</para>
  22. <screen><userinput>patch -Np1 -i ../coreutils-&coreutils-version;-suppress_uptime_kill_su-1.patch</userinput></screen>
  23. <para>Now prepare Coreutils for compilation:</para>
  24. <screen><userinput>DEFAULT_POSIX2_VERSION=199209 ./configure --prefix=/usr</userinput></screen>
  25. <para>Compile the package:</para>
  26. <screen><userinput>make</userinput></screen>
  27. <para>Create two dummy groups and a dummy user name:</para>
  28. <screen><userinput>echo "dummy1:x:1000:" &gt;&gt; /etc/group
  29. echo "dummy2:x:1001:dummy" &gt;&gt; /etc/group
  30. echo "dummy:x:1000:1000:::/bin/bash" &gt;&gt; /etc/passwd</userinput></screen>
  31. <para>Run the <emphasis>root</emphasis> tests:</para>
  32. <screen><userinput>make NON_ROOT_USERNAME=dummy check-root</userinput></screen>
  33. <para>Run the user tests:</para>
  34. <screen><userinput>src/su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
  35. <para>Remove the dummy user and groups:</para>
  36. <screen><userinput>sed -i '/dummy/d' /etc/passwd /etc/group</userinput></screen>
  37. <para>Install the package:</para>
  38. <screen><userinput>make install</userinput></screen>
  39. <para>And move some programs to their proper locations:</para>
  40. <screen><userinput>mv /usr/bin/{[,basename,cat,chgrp,chmod,chown,cp,dd,df} /bin
  41. mv /usr/bin/{date,echo,false,head,install,ln,ls} /bin
  42. mv /usr/bin/{mkdir,mknod,mv,pwd,rm,rmdir,sync} /bin
  43. mv /usr/bin/{sleep,stty,test,touch,true,uname} /bin
  44. mv /usr/bin/hostname /bin
  45. mv /usr/bin/chroot /usr/sbin</userinput></screen>
  46. <para>Create a symlink:</para>
  47. <screen><userinput>ln -s ../../bin/install /usr/bin</userinput></screen>
  48. </sect2>
  49. <sect2 id="contents-coreutils" role="content"><title>Contents of Coreutils</title>
  50. <para>See testing</para>
  51. </sect2>
  52. </sect1>