util-linux.xml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Util-linux package contains miscellaneous utility programs.</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&util-linux-ch5-sbu;</seg>
  26. <seg>&util-linux-ch5-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>Installation of Util-linux</title>
  32. <para>Prepare Util-linux for compilation:</para>
  33. <screen><userinput remap="configure">./configure --prefix=/tools \
  34. --disable-makeinstall-chown \
  35. --without-systemdsystemunitdir \
  36. PKG_CONFIG=""</userinput></screen>
  37. <variablelist>
  38. <title>The meaning of the configure option:</title>
  39. <varlistentry>
  40. <term><parameter>--disable-makeinstall-chown</parameter></term>
  41. <listitem>
  42. <para>This switch disables using the <command>chown</command> command
  43. during installation. This is not needed when installing into the
  44. /tools directory and avoids the necessity of installing as
  45. root.</para>
  46. </listitem>
  47. </varlistentry>
  48. <varlistentry>
  49. <term><parameter>--without-systemdsystemunitdir</parameter></term>
  50. <listitem>
  51. <para>On systems that use systemd, the package tries to install
  52. a systemd specific file to a non-existent directory in /tools.
  53. This switch disables the unnecessary action.</para>
  54. </listitem>
  55. </varlistentry>
  56. <varlistentry>
  57. <term><envar>PKG_CONFIG=""</envar></term>
  58. <listitem>
  59. <para>Setting this envronment variable prevents adding unneeded
  60. features that may be available on the host. Note that the location
  61. shown for setting this environment variable is different from other
  62. LFS sections where variables are set preceding the command. This
  63. location is shown to demonstrate an alternative way of setting an
  64. environment variable when using configure.</para>
  65. </listitem>
  66. </varlistentry>
  67. </variablelist>
  68. <para>Compile the package:</para>
  69. <screen><userinput remap="make">make</userinput></screen>
  70. <para>Install the package:</para>
  71. <screen><userinput remap="install">make install</userinput></screen>
  72. </sect2>
  73. </sect1>