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