Changeset 21ba4e3 for chapter06/coreutils-inst.xml
- Timestamp:
- 10/09/2003 11:22:07 PM (21 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v5_0, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 27d9bc1a
- Parents:
- 1a7aecc6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/coreutils-inst.xml
r1a7aecc6 r21ba4e3 8 8 The following patch fixes this behaviour for Intel architectures:</para> 9 9 10 < para><screen><userinput>patch -Np1 -i ../&coreutils-uname-patch;</userinput></screen></para>10 <screen><userinput>patch -Np1 -i ../&coreutils-uname-patch;</userinput></screen> 11 11 12 12 <para>We do not want Coreutils to install its version of the … … 14 14 provided by Net-tools. Prevent its installation by applying a patch:</para> 15 15 16 < para><screen><userinput>patch -Np1 -i ../&coreutils-hostname-patch;</userinput></screen></para>16 <screen><userinput>patch -Np1 -i ../&coreutils-hostname-patch;</userinput></screen> 17 17 18 18 <para>Now prepare Coreutils for compilation:</para> 19 19 20 < para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>20 <screen><userinput>./configure --prefix=/usr</userinput></screen> 21 21 22 22 <para>Compile the package:</para> 23 23 24 < para><screen><userinput>make</userinput></screen></para>24 <screen><userinput>make</userinput></screen> 25 25 26 26 <para>The <userinput>su</userinput> program from Coreutils wasn't installed in … … 29 29 the problem by installing it now:</para> 30 30 31 < para><screen><userinput>make install-root</userinput></screen></para>31 <screen><userinput>make install-root</userinput></screen> 32 32 33 33 <para>This package has a test suite available which can perform a number of … … 39 39 and a dummy user name:</para> 40 40 41 < para><screen><userinput>echo "dummy1:x:1000" >> /etc/group41 <screen><userinput>echo "dummy1:x:1000" >> /etc/group 42 42 echo "dummy2:x:1001:dummy" >> /etc/group 43 echo "dummy:x:1000:1000:::/bin/bash" >> /etc/passwd</userinput></screen> </para>43 echo "dummy:x:1000:1000:::/bin/bash" >> /etc/passwd</userinput></screen> 44 44 45 45 <para>Some tests are meant to run as <emphasis>root</emphasis>:</para> 46 46 47 < para><screen><userinput>make check-root</userinput></screen></para>47 <screen><userinput>make check-root</userinput></screen> 48 48 49 49 <para>The remainder of the tests are run as the <emphasis>dummy</emphasis> 50 50 user:</para> 51 51 52 < para><screen><userinput>su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen></para>52 <screen><userinput>su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen> 53 53 54 54 <para>Remove the dummy groups and user name:</para> 55 55 56 < para><screen><userinput>sed -i.bak '/dummy/d' /etc/passwd /etc/group</userinput></screen></para>56 <screen><userinput>sed -i.bak '/dummy/d' /etc/passwd /etc/group</userinput></screen> 57 57 58 58 <para>Install the package:</para> 59 59 60 < para><screen><userinput>make install</userinput></screen></para>60 <screen><userinput>make install</userinput></screen> 61 61 62 62 <para>And move some programs to their proper locations:</para> 63 63 64 < para><screen><userinput>mv /usr/bin/{basename,cat,chgrp,chmod,chown,cp,dd,df} /bin64 <screen><userinput>mv /usr/bin/{basename,cat,chgrp,chmod,chown,cp,dd,df} /bin 65 65 mv /usr/bin/{dir,dircolors,du,date,echo,false,head} /bin 66 66 mv /usr/bin/{install,ln,ls,mkdir,mkfifo,mknod,mv,pwd} /bin 67 67 mv /usr/bin/{rm,rmdir,shred,sync,sleep,stty,su,test} /bin 68 68 mv /usr/bin/{touch,true,uname,vdir} /bin 69 mv /usr/bin/chroot /usr/sbin</userinput></screen> </para>69 mv /usr/bin/chroot /usr/sbin</userinput></screen> 70 70 71 71 <para>Finally, create a few necessary symlinks:</para> 72 72 73 < para><screen><userinput>ln -s test /bin/[74 ln -s ../../bin/install /usr/bin</userinput></screen> </para>73 <screen><userinput>ln -s test /bin/[ 74 ln -s ../../bin/install /usr/bin</userinput></screen> 75 75 76 76 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.