util-linux.xml 3.0 KB

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