coreutils-inst.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Coreutils</title>
  4. <para>Normally the functionality of uname is somewhat broken, in that
  5. the -p switch always returns "unknown". This patch fixes that behaviour
  6. 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 it's version of the hostname
  9. binary, because it is inferior to the version provided by Net-tools.
  10. Prevent the installation of hostname with this patch:</para>
  11. <para><screen><userinput>patch -Np1 -i ../coreutils-&coreutils-hostname-patch-version;.patch</userinput></screen></para>
  12. <para>Prepare Coreutils to be compiled:</para>
  13. <para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
  14. <para>Continue with compiling the package:</para>
  15. <para><screen><userinput>make</userinput></screen></para>
  16. <para><screen><userinput>make check-root
  17. make RUN_EXPENSIVE_TESTS=yes check</userinput></screen></para>
  18. <para>Install the package:</para>
  19. <para><screen><userinput>make install</userinput></screen></para>
  20. <para>Move files to their proper locations:</para>
  21. <para><screen><userinput>mv /usr/bin/{basename,cat,chgrp,chmod,chown,cp,dd,df} /bin
  22. mv /usr/bin/{dir,dircolors,du,date,echo,false,head} /bin
  23. mv /usr/bin/{install,ln,ls,mkdir,mkfifo,mknod,mv,pwd} /bin
  24. mv /usr/bin/{rm,rmdir,shred,sync,sleep,stty,su,test} /bin
  25. mv /usr/bin/{touch,true,uname,vdir} /bin
  26. mv /usr/bin/chroot /usr/sbin</userinput></screen></para>
  27. <para>Finally, create a few necessary symlinks:</para>
  28. <para><screen><userinput>ln -s test /bin/[
  29. ln -s ../../bin/install /usr/bin</userinput></screen></para>
  30. </sect2>