util-linux.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-tools-util-linux" role="wrap">
  8. <?dbhtml filename="util-linux.html"?>
  9. <sect1info condition="script">
  10. <productname>util-linux</productname>
  11. <productnumber>&util-linux-version;</productnumber>
  12. <address>&util-linux-url;</address>
  13. </sect1info>
  14. <title>Util-linux-&util-linux-version;</title>
  15. <indexterm zone="ch-tools-util-linux">
  16. <primary sortas="a-Util-linux">Util-linux</primary>
  17. <secondary>tools</secondary>
  18. </indexterm>
  19. <sect2 role="package">
  20. <title/>
  21. <para>The Util-linux package contains miscellaneous utility programs.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&util-linux-tmp-sbu;</seg>
  27. <seg>&util-linux-tmp-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Util-linux</title>
  33. <para>First create a directory
  34. to enable storage for the <command>hwclock</command> program:</para>
  35. <screen><userinput remap="pre">mkdir -pv /var/lib/hwclock</userinput></screen>
  36. <para>Prepare Util-linux for compilation:</para>
  37. <screen><userinput remap="configure">./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
  38. --docdir=/usr/share/doc/util-linux-&util-linux-version; \
  39. --disable-chfn-chsh \
  40. --disable-login \
  41. --disable-nologin \
  42. --disable-su \
  43. --disable-setpriv \
  44. --disable-runuser \
  45. --disable-pylibmount \
  46. --disable-static \
  47. --without-python \
  48. runstatedir=/run</userinput></screen>
  49. <variablelist>
  50. <title>The meaning of the configure options:</title>
  51. <varlistentry>
  52. <term><parameter>ADJTIME_PATH=/var/lib/hwclock/adjtime</parameter></term>
  53. <listitem>
  54. <para>This sets the location of the file recording information about
  55. the hardware clock in accordance to the FHS. This is not stricly
  56. needed for this temporary tool, but it prevents creating a file
  57. at another location, which would not be overwritten or removed
  58. when building the final util-linux package.</para>
  59. </listitem>
  60. </varlistentry>
  61. <varlistentry>
  62. <term><parameter>--disable-*</parameter></term>
  63. <listitem>
  64. <para>These switches prevent warnings about building components
  65. that require packages not in LFS or not installed yet.</para>
  66. </listitem>
  67. </varlistentry>
  68. <varlistentry>
  69. <term><parameter>--without-python</parameter></term>
  70. <listitem>
  71. <para>This switch disables using <application>Python</application>.
  72. It avoids trying to build unneeded bindings.</para>
  73. </listitem>
  74. </varlistentry>
  75. <varlistentry>
  76. <term><parameter>runstatedir=/run</parameter></term>
  77. <listitem>
  78. <para>This switch sets the location of the socket used by
  79. <command>uuidd</command> and
  80. <filename class="libraryfile">libuuid</filename> correctly.</para>
  81. </listitem>
  82. </varlistentry>
  83. </variablelist>
  84. <para>Compile the package:</para>
  85. <screen><userinput remap="make">make</userinput></screen>
  86. <para>Install the package:</para>
  87. <screen><userinput remap="install">make install</userinput></screen>
  88. </sect2>
  89. <sect2 role="content">
  90. <title/>
  91. <para>Details on this package are located in <xref linkend="contents-utillinux" role="."/></para>
  92. </sect2>
  93. </sect1>