util-linux.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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-ch5-sbu;</seg>
  27. <seg>&util-linux-ch5-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Util-linux</title>
  33. <para>Prepare Util-linux for compilation:</para>
  34. <screen revision="sysv"><userinput remap="configure">./configure --prefix=/tools \
  35. --without-python \
  36. --disable-makeinstall-chown \
  37. --without-systemdsystemunitdir \
  38. PKG_CONFIG=""</userinput></screen>
  39. <screen revision="systemd"><userinput remap="configure">./configure --prefix=/tools \
  40. --without-python \
  41. --disable-makeinstall-chown \
  42. --without-systemdsystemunitdir \
  43. --enable-libmount-force-mountinfo \
  44. PKG_CONFIG=""</userinput></screen>
  45. <variablelist>
  46. <title>The meaning of the configure option:</title>
  47. <varlistentry>
  48. <term><parameter>--without-python</parameter></term>
  49. <listitem>
  50. <para>This switch disables using <application>Python</application>
  51. if it is installed on the host system. It avoids trying to build
  52. unneeded bindings.</para>
  53. </listitem>
  54. </varlistentry>
  55. <varlistentry>
  56. <term><parameter>--disable-makeinstall-chown</parameter></term>
  57. <listitem>
  58. <para>This switch disables using the <command>chown</command> command
  59. during installation. This is not needed when installing into the
  60. /tools directory and avoids the necessity of installing as
  61. root.</para>
  62. </listitem>
  63. </varlistentry>
  64. <varlistentry>
  65. <term><parameter>--without-systemdsystemunitdir</parameter></term>
  66. <listitem>
  67. <para>On systems that use systemd, the package tries to install
  68. a systemd specific file to a non-existent directory in /tools.
  69. This switch disables the unnecessary action.</para>
  70. </listitem>
  71. </varlistentry>
  72. <varlistentry>
  73. <term><envar>PKG_CONFIG=""</envar></term>
  74. <listitem>
  75. <para>Setting this environment variable prevents adding unneeded
  76. features that may be available on the host. Note that the location
  77. shown for setting this environment variable is different from other
  78. LFS sections where variables are set preceding the command. This
  79. location is shown to demonstrate an alternative way of setting an
  80. environment variable when using configure.</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. </sect1>