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