aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/coreutils-inst.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/coreutils-inst.xml')
-rw-r--r--chapter06/coreutils-inst.xml30
1 files changed, 15 insertions, 15 deletions
diff --git a/chapter06/coreutils-inst.xml b/chapter06/coreutils-inst.xml
index 7ef5a0a09..1b52c5e8b 100644
--- a/chapter06/coreutils-inst.xml
+++ b/chapter06/coreutils-inst.xml
@@ -7,28 +7,28 @@
broken, in that the <userinput>-p</userinput> switch always returns "unknown".
The following patch fixes this behaviour for Intel architectures:</para>
-<para><screen><userinput>patch -Np1 -i ../&coreutils-uname-patch;</userinput></screen></para>
+<screen><userinput>patch -Np1 -i ../&coreutils-uname-patch;</userinput></screen>
<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>
-<para><screen><userinput>patch -Np1 -i ../&coreutils-hostname-patch;</userinput></screen></para>
+<screen><userinput>patch -Np1 -i ../&coreutils-hostname-patch;</userinput></screen>
<para>Now prepare Coreutils for compilation:</para>
-<para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
+<screen><userinput>./configure --prefix=/usr</userinput></screen>
<para>Compile the package:</para>
-<para><screen><userinput>make</userinput></screen></para>
+<screen><userinput>make</userinput></screen>
<para>The <userinput>su</userinput> program from Coreutils wasn't installed in
Chapter 5 because it needed <emphasis>root</emphasis> privilege to do so. We're
going to need it in a few moments for the test suite. Therefore we work around
the problem by installing it now:</para>
-<para><screen><userinput>make install-root</userinput></screen></para>
+<screen><userinput>make install-root</userinput></screen>
<para>This package has a test suite available which can perform a number of
checks to ensure it built correctly. However, this particular test suite makes
@@ -38,40 +38,40 @@ choose not to run the test suite, skip down to "Install the package". The
following commands will prepare us for the test suite. Create two dummy groups
and a dummy user name:</para>
-<para><screen><userinput>echo "dummy1:x:1000" >> /etc/group
+<screen><userinput>echo "dummy1:x:1000" >> /etc/group
echo "dummy2:x:1001:dummy" >> /etc/group
-echo "dummy:x:1000:1000:::/bin/bash" >> /etc/passwd</userinput></screen></para>
+echo "dummy:x:1000:1000:::/bin/bash" >> /etc/passwd</userinput></screen>
<para>Some tests are meant to run as <emphasis>root</emphasis>:</para>
-<para><screen><userinput>make check-root</userinput></screen></para>
+<screen><userinput>make check-root</userinput></screen>
<para>The remainder of the tests are run as the <emphasis>dummy</emphasis>
user:</para>
-<para><screen><userinput>su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen></para>
+<screen><userinput>su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
<para>Remove the dummy groups and user name:</para>
-<para><screen><userinput>sed -i.bak '/dummy/d' /etc/passwd /etc/group</userinput></screen></para>
+<screen><userinput>sed -i.bak '/dummy/d' /etc/passwd /etc/group</userinput></screen>
<para>Install the package:</para>
-<para><screen><userinput>make install</userinput></screen></para>
+<screen><userinput>make install</userinput></screen>
<para>And move some programs to their proper locations:</para>
-<para><screen><userinput>mv /usr/bin/{basename,cat,chgrp,chmod,chown,cp,dd,df} /bin
+<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
mv /usr/bin/{touch,true,uname,vdir} /bin
-mv /usr/bin/chroot /usr/sbin</userinput></screen></para>
+mv /usr/bin/chroot /usr/sbin</userinput></screen>
<para>Finally, create a few necessary symlinks:</para>
-<para><screen><userinput>ln -s test /bin/[
-ln -s ../../bin/install /usr/bin</userinput></screen></para>
+<screen><userinput>ln -s test /bin/[
+ln -s ../../bin/install /usr/bin</userinput></screen>
</sect2>