util-linux.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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>The FHS recommends using the <filename
  34. class="directory">/var/lib/hwclock</filename> directory instead of the
  35. usual <filename class="directory">/etc</filename> directory as the
  36. location for the <filename>adjtime</filename> file. Create this directory
  37. with:</para>
  38. <screen><userinput remap="pre">mkdir -pv /var/lib/hwclock</userinput></screen>
  39. <para>Prepare Util-linux for compilation:</para>
  40. <screen><userinput remap="configure">./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
  41. --docdir=/usr/share/doc/util-linux-&util-linux-version; \
  42. --disable-chfn-chsh \
  43. --disable-login \
  44. --disable-nologin \
  45. --disable-su \
  46. --disable-setpriv \
  47. --disable-runuser \
  48. --disable-pylibmount \
  49. --disable-static \
  50. --without-python \
  51. runstatedir=/run</userinput></screen>
  52. <variablelist>
  53. <title>The meaning of the configure options:</title>
  54. <varlistentry>
  55. <term><parameter>ADJTIME_PATH=/var/lib/hwclock/adjtime</parameter></term>
  56. <listitem>
  57. <para>This sets the location of the file recording information about
  58. the hardware clock in accordance to the FHS. This is not stricly
  59. needed for this temporary tool, but it prevents creating a file
  60. at another location, which would not be overwritten or removed
  61. when building the final util-linux package.</para>
  62. </listitem>
  63. </varlistentry>
  64. <varlistentry>
  65. <term><parameter>--disable-*</parameter></term>
  66. <listitem>
  67. <para>These switches prevent warnings about building components
  68. that require packages not in LFS or not installed yet.</para>
  69. </listitem>
  70. </varlistentry>
  71. <varlistentry>
  72. <term><parameter>--without-python</parameter></term>
  73. <listitem>
  74. <para>This switch disables using <application>Python</application>.
  75. It avoids trying to build unneeded bindings.</para>
  76. </listitem>
  77. </varlistentry>
  78. <varlistentry>
  79. <term><parameter>runstatedir=/run</parameter></term>
  80. <listitem>
  81. <para>This switch sets the location of the socket used by
  82. <command>uuidd</command> and
  83. <filename class="libraryfile">libuuid</filename> correctly.</para>
  84. </listitem>
  85. </varlistentry>
  86. </variablelist>
  87. <para>Compile the package:</para>
  88. <screen><userinput remap="make">make</userinput></screen>
  89. <para>Install the package:</para>
  90. <screen><userinput remap="install">make install</userinput></screen>
  91. </sect2>
  92. <sect2 role="content">
  93. <title/>
  94. <para>Details on this package are located in <xref linkend="contents-utillinux" role="."/></para>
  95. </sect2>
  96. </sect1>