1 | <sect2><title> </title><para> </para></sect2>
|
---|
2 |
|
---|
3 | <sect2>
|
---|
4 | <title>Installation of Coreutils</title>
|
---|
5 |
|
---|
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>
|
---|
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 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>
|
---|
15 |
|
---|
16 | <para><screen><userinput>patch -Np1 -i ../coreutils-&coreutils-hostname-patch-version;.patch</userinput></screen></para>
|
---|
17 |
|
---|
18 | <para>Now prepare Coreutils for compilation:</para>
|
---|
19 |
|
---|
20 | <para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
|
---|
21 |
|
---|
22 | <para>Compile the package:</para>
|
---|
23 |
|
---|
24 | <para><screen><userinput>make</userinput></screen></para>
|
---|
25 |
|
---|
26 | <para>This package has a test suite available which can perform a number of
|
---|
27 | checks to ensure it built correctly. Should you choose to run it, the
|
---|
28 | following commands will do so:</para>
|
---|
29 |
|
---|
30 | <para><screen><userinput>make check-root
|
---|
31 | make RUN_EXPENSIVE_TESTS=yes check</userinput></screen></para>
|
---|
32 |
|
---|
33 | <para>Install the package:</para>
|
---|
34 |
|
---|
35 | <para><screen><userinput>make install</userinput></screen></para>
|
---|
36 |
|
---|
37 | <para>And move some programs to their proper locations:</para>
|
---|
38 |
|
---|
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
|
---|
43 | mv /usr/bin/{touch,true,uname,vdir} /bin
|
---|
44 | mv /usr/bin/chroot /usr/sbin</userinput></screen></para>
|
---|
45 |
|
---|
46 | <para>Finally, create a few necessary symlinks:</para>
|
---|
47 |
|
---|
48 | <para><screen><userinput>ln -s test /bin/[
|
---|
49 | ln -s ../../bin/install /usr/bin</userinput></screen></para>
|
---|
50 |
|
---|
51 | </sect2>
|
---|
52 |
|
---|