Added a few comments here and there
[linux_from_scratch.git] / BOOK / chapter05 / utillinux.xml
blob680ea043101c906d5ac5e51db306358e5327de21
1 <sect1 id="ch-tools-util-linux">
2 <title>Installing Util-linux-&util-linux-version;</title>
3 <?dbhtml filename="util-linux.html" dir="chapter05"?>
5 <screen>&buildtime; &util-linux-time-tools;
6 &diskspace; &util-linux-compsize-tools;</screen>
8 &aa-utillinux-down;
9 &aa-utillinux-dep;
11 <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
13 <sect2>
14 <title>Installation of Util-linux</title>
16 <para>Util-linux doesn't use the freshly installed headers and libraries from
17 the <filename>/tools</filename> directory. This is fixed by altering the
18 configure script:</para>
20 <screen><userinput>cp configure configure.backup
21 sed "s@/usr/include@/tools/include@g" configure.backup &gt; configure</userinput></screen>
23 <para>Prepare Util-linux for compilation:</para>
25 <screen><userinput>./configure</userinput></screen>
27 <para>Compile some support routines:</para>
29 <screen><userinput>make -C lib</userinput></screen>
31 <para>And, since you'll need only a couple of the utilities contained in this
32 package, build just those:</para>
34 <screen><userinput>make -C mount  mount umount
35 make -C text-utils  more
36 make -C sys-utils  arch</userinput></screen>
38 <para>Now copy these programs to the temporary tools directory:</para>
40 <screen><userinput>cp mount/{,u}mount text-utils/more sys-utils/arch /tools/bin</userinput></screen>
42 </sect2>
44 <sect2><title>&nbsp;</title><para>&nbsp;</para>
45 <para>The details on this package are found in <xref linkend="contents-utillinux"/>.</para>
46 <para>&nbsp;</para></sect2>
48 </sect1>