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