[cb23c1a] | 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 |
|
---|
| 8 | <sect1 id="ch-tools-util-linux" role="wrap">
|
---|
| 9 | <?dbhtml filename="util-linux.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info condition="script">
|
---|
| 12 | <productname>util-linux</productname>
|
---|
| 13 | <productnumber>&util-linux-version;</productnumber>
|
---|
| 14 | <address>&util-linux-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
| 17 | <title>Util-linux-&util-linux-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-tools-util-linux">
|
---|
| 20 | <primary sortas="a-Util-linux">Util-linux</primary>
|
---|
[448e226] | 21 | <secondary>tools</secondary>
|
---|
[cb23c1a] | 22 | </indexterm>
|
---|
| 23 |
|
---|
| 24 | <sect2 role="package">
|
---|
| 25 | <title/>
|
---|
| 26 |
|
---|
| 27 | <para>The Util-linux package contains miscellaneous utility programs.</para>
|
---|
| 28 |
|
---|
| 29 | <segmentedlist>
|
---|
| 30 | <segtitle>&buildtime;</segtitle>
|
---|
| 31 | <segtitle>&diskspace;</segtitle>
|
---|
| 32 |
|
---|
| 33 | <seglistitem>
|
---|
| 34 | <seg>&util-linux-ch5-sbu;</seg>
|
---|
| 35 | <seg>&util-linux-ch5-du;</seg>
|
---|
| 36 | </seglistitem>
|
---|
| 37 | </segmentedlist>
|
---|
| 38 |
|
---|
| 39 | </sect2>
|
---|
| 40 |
|
---|
| 41 | <sect2 role="installation">
|
---|
| 42 | <title>Installation of Util-linux</title>
|
---|
| 43 |
|
---|
| 44 | <para>Prepare Util-linux for compilation:</para>
|
---|
| 45 |
|
---|
[a840e59] | 46 | <screen revision="sysv"><userinput remap="configure">./configure --prefix=/tools \
|
---|
[14109e7] | 47 | --without-python \
|
---|
[8ad94ab] | 48 | --disable-makeinstall-chown \
|
---|
| 49 | --without-systemdsystemunitdir \
|
---|
| 50 | PKG_CONFIG=""</userinput></screen>
|
---|
[a840e59] | 51 |
|
---|
| 52 | <screen revision="systemd"><userinput remap="configure">./configure --prefix=/tools \
|
---|
| 53 | --without-python \
|
---|
| 54 | --disable-makeinstall-chown \
|
---|
| 55 | --without-systemdsystemunitdir \
|
---|
| 56 | --enable-libmount-force-mountinfo \
|
---|
| 57 | PKG_CONFIG=""</userinput></screen>
|
---|
[cb23c1a] | 58 |
|
---|
| 59 | <variablelist>
|
---|
| 60 | <title>The meaning of the configure option:</title>
|
---|
| 61 |
|
---|
[14109e7] | 62 | <varlistentry>
|
---|
| 63 | <term><parameter>--without-python</parameter></term>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>This switch disables using <application>Python</application>
|
---|
| 66 | if it is installed on the host system. It avoids trying to build
|
---|
| 67 | unneeded bindings.</para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </varlistentry>
|
---|
| 70 |
|
---|
[cb23c1a] | 71 | <varlistentry>
|
---|
| 72 | <term><parameter>--disable-makeinstall-chown</parameter></term>
|
---|
| 73 | <listitem>
|
---|
| 74 | <para>This switch disables using the <command>chown</command> command
|
---|
| 75 | during installation. This is not needed when installing into the
|
---|
| 76 | /tools directory and avoids the necessity of installing as
|
---|
| 77 | root.</para>
|
---|
| 78 | </listitem>
|
---|
| 79 | </varlistentry>
|
---|
[71e0f49] | 80 |
|
---|
| 81 | <varlistentry>
|
---|
| 82 | <term><parameter>--without-systemdsystemunitdir</parameter></term>
|
---|
| 83 | <listitem>
|
---|
| 84 | <para>On systems that use systemd, the package tries to install
|
---|
| 85 | a systemd specific file to a non-existent directory in /tools.
|
---|
| 86 | This switch disables the unnecessary action.</para>
|
---|
| 87 | </listitem>
|
---|
| 88 | </varlistentry>
|
---|
[8ad94ab] | 89 |
|
---|
| 90 | <varlistentry>
|
---|
| 91 | <term><envar>PKG_CONFIG=""</envar></term>
|
---|
| 92 | <listitem>
|
---|
[bfd117b] | 93 | <para>Setting this environment variable prevents adding unneeded
|
---|
[de7475be] | 94 | features that may be available on the host. Note that the location
|
---|
| 95 | shown for setting this environment variable is different from other
|
---|
[e043985] | 96 | LFS sections where variables are set preceding the command. This
|
---|
[de7475be] | 97 | location is shown to demonstrate an alternative way of setting an
|
---|
| 98 | environment variable when using configure.</para>
|
---|
[8ad94ab] | 99 | </listitem>
|
---|
| 100 | </varlistentry>
|
---|
[cb23c1a] | 101 | </variablelist>
|
---|
| 102 |
|
---|
| 103 | <para>Compile the package:</para>
|
---|
| 104 |
|
---|
| 105 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 106 |
|
---|
| 107 | <para>Install the package:</para>
|
---|
| 108 |
|
---|
| 109 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 110 |
|
---|
| 111 | </sect2>
|
---|
| 112 |
|
---|
| 113 | </sect1>
|
---|