util-linux.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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><userinput remap="configure">./configure --prefix=/tools \
  35. --without-python \
  36. --disable-makeinstall-chown \
  37. --without-systemdsystemunitdir \
  38. --without-ncurses \
  39. PKG_CONFIG=""</userinput></screen>
  40. <variablelist>
  41. <title>The meaning of the configure option:</title>
  42. <varlistentry>
  43. <term><parameter>--without-python</parameter></term>
  44. <listitem>
  45. <para>This switch disables using <application>Python</application>
  46. if it is installed on the host system. It avoids trying to build
  47. unneeded bindings.</para>
  48. </listitem>
  49. </varlistentry>
  50. <varlistentry>
  51. <term><parameter>--disable-makeinstall-chown</parameter></term>
  52. <listitem>
  53. <para>This switch disables using the <command>chown</command> command
  54. during installation. This is not needed when installing into the
  55. /tools directory and avoids the necessity of installing as
  56. root.</para>
  57. </listitem>
  58. </varlistentry>
  59. <varlistentry>
  60. <term><parameter>--without-ncurses</parameter></term>
  61. <listitem>
  62. <para>This switch disables using the ncurses library for
  63. the build process. This is not needed when installing into the
  64. /tools directory and avoids problems on some host distros.</para>
  65. </listitem>
  66. </varlistentry>
  67. <varlistentry>
  68. <term><parameter>--without-systemdsystemunitdir</parameter></term>
  69. <listitem>
  70. <para>On systems that use systemd, the package tries to install
  71. a systemd specific file to a non-existent directory in /tools.
  72. This switch disables the unnecessary action.</para>
  73. </listitem>
  74. </varlistentry>
  75. <varlistentry>
  76. <term><envar>PKG_CONFIG=""</envar></term>
  77. <listitem>
  78. <para>Setting this environment variable prevents adding unneeded
  79. features that may be available on the host. Note that the location
  80. shown for setting this environment variable is different from other
  81. LFS sections where variables are set preceding the command. This
  82. location is shown to demonstrate an alternative way of setting an
  83. environment variable when using configure.</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
  95. <xref linkend="contents-utillinux" role="."/></para>
  96. </sect2>
  97. </sect1>