coreutils-inst.xml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Coreutils</title>
  4. <para>Normally the functionality of <userinput>uname</userinput> is somewhat
  5. broken, in that the <userinput>-p</userinput> switch always returns "unknown".
  6. The following patch fixes this behaviour for Intel architectures:</para>
  7. <para><screen><userinput>patch -Np1 -i ../coreutils-&coreutils-uname-patch-version;.patch</userinput></screen></para>
  8. <para>We do not want Coreutils to install its version of the
  9. <userinput>hostname</userinput> program, because it is inferior to the version
  10. provided by Net-tools. Prevent its installation by applying a patch:</para>
  11. <para><screen><userinput>patch -Np1 -i ../coreutils-&coreutils-hostname-patch-version;.patch</userinput></screen></para>
  12. <para>Now prepare Coreutils for compilation:</para>
  13. <para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
  14. <para>Compile the package:</para>
  15. <para><screen><userinput>make</userinput></screen></para>
  16. <para>This package has a testsuite available which can perform a number of
  17. checks to ensure it built correctly. Should you choose to run it, the
  18. following commands will do so:</para>
  19. <para><screen><userinput>make check-root
  20. make RUN_EXPENSIVE_TESTS=yes check</userinput></screen></para>
  21. <para>Install the package:</para>
  22. <para><screen><userinput>make install</userinput></screen></para>
  23. <para>And move some programs to their proper locations:</para>
  24. <para><screen><userinput>mv /usr/bin/{basename,cat,chgrp,chmod,chown,cp,dd,df} /bin
  25. mv /usr/bin/{dir,dircolors,du,date,echo,false,head} /bin
  26. mv /usr/bin/{install,ln,ls,mkdir,mkfifo,mknod,mv,pwd} /bin
  27. mv /usr/bin/{rm,rmdir,shred,sync,sleep,stty,su,test} /bin
  28. mv /usr/bin/{touch,true,uname,vdir} /bin
  29. mv /usr/bin/chroot /usr/sbin</userinput></screen></para>
  30. <para>Finally, create a few necessary symlinks:</para>
  31. <para><screen><userinput>ln -s test /bin/[
  32. ln -s ../../bin/install /usr/bin</userinput></screen></para>
  33. </sect2>