util-linux.xml 3.4 KB

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