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