util-linux.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-tools-util-linux" role="wrap">
  7. <title>Util-linux-&util-linux-version;</title>
  8. <?dbhtml filename="util-linux.html"?>
  9. <indexterm zone="ch-tools-util-linux">
  10. <primary sortas="a-Util-linux">Util-linux</primary>
  11. <secondary>tools</secondary></indexterm>
  12. <sect2 role="package"><title/>
  13. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/util-linux.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
  14. <segmentedlist>
  15. <segtitle>&buildtime;</segtitle>
  16. <segtitle>&diskspace;</segtitle>
  17. <seglistitem><seg>0.2 SBU</seg><seg>16 MB</seg></seglistitem>
  18. </segmentedlist>
  19. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/util-linux.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
  20. </sect2>
  21. <sect2 role="installation">
  22. <title>Installation of Util-linux</title>
  23. <para>Util-linux has issues with the Linux 2.6 kernel series - fix these issues
  24. by applying the following patch:</para>
  25. <screen><userinput>patch -Np1 -i ../util-linux-&util-linux-version;-kernel-headers-1.patch</userinput></screen>
  26. <para>Util-linux doesn't use the freshly installed headers and libraries
  27. from the <filename class="directory">/tools</filename> directory. This is fixed by altering the configure
  28. script:</para>
  29. <screen><userinput>sed -i "s@/usr/include@/tools/include@g" configure</userinput></screen>
  30. <para>Prepare Util-linux for compilation:</para>
  31. <screen><userinput>./configure</userinput></screen>
  32. <para>Compile some support routines:</para>
  33. <screen><userinput>make -C lib</userinput></screen>
  34. <para>Since you'll only need a couple of the utilities contained in
  35. this package, build just those:</para>
  36. <screen><userinput>make -C mount mount umount
  37. make -C text-utils more</userinput></screen>
  38. <para>Now copy these programs to the temporary tools directory:</para>
  39. <screen><userinput>cp mount/{,u}mount text-utils/more /tools/bin</userinput></screen>
  40. </sect2>
  41. <sect2 role="content"><title/>
  42. <para>The details on this package are found in <xref linkend="contents-utillinux"/>.</para>
  43. </sect2>
  44. </sect1>