source: chapter07/util-linux.xml@ 4bda698

multilib-10.1
Last change on this file since 4bda698 was 4bda698, checked in by Thomas Trepl <thomas@…>, 3 years ago

Merge changes from trunk to multilib

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@12130 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 6.4 KB
Line 
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 <secondary>tools</secondary>
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-tmp-sbu;</seg>
35 <seg>&util-linux-tmp-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Util-linux</title>
43
44 <para>The FHS recommends using the <filename
45 class="directory">/var/lib/hwclock</filename> directory instead of the
46 usual <filename class="directory">/etc</filename> directory as the
47 location for the <filename>adjtime</filename> file. Create this directory
48 with:</para>
49
50<screen><userinput remap="pre">mkdir -pv /var/lib/hwclock</userinput></screen>
51
52 <para>Prepare Util-linux for compilation:</para>
53
54<screen><userinput remap="configure">./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
55 --docdir=/usr/share/doc/util-linux-&util-linux-version; \
56 --disable-chfn-chsh \
57 --disable-login \
58 --disable-nologin \
59 --disable-su \
60 --disable-setpriv \
61 --disable-runuser \
62 --disable-pylibmount \
63 --disable-static \
64 --without-python \
65 runstatedir=/run</userinput></screen>
66
67 <variablelist>
68 <title>The meaning of the configure options:</title>
69
70 <varlistentry>
71 <term><parameter>ADJTIME_PATH=/var/lib/hwclock/adjtime</parameter></term>
72 <listitem>
73 <para>This sets the location of the file recording information about
74 the hardware clock in accordance to the FHS. This is not stricly
75 needed for this temporary tool, but it prevents creating a file
76 at another location, which would not be overwritten or removed
77 when building the final util-linux package.</para>
78 </listitem>
79 </varlistentry>
80
81 <varlistentry>
82 <term><parameter>--disable-*</parameter></term>
83 <listitem>
84 <para>These switches prevent warnings about building components
85 that require packages not in LFS or not installed yet.</para>
86 </listitem>
87 </varlistentry>
88
89 <varlistentry>
90 <term><parameter>--without-python</parameter></term>
91 <listitem>
92 <para>This switch disables using <application>Python</application>.
93 It avoids trying to build unneeded bindings.</para>
94 </listitem>
95 </varlistentry>
96
97 <varlistentry>
98 <term><parameter>runstatedir=/run</parameter></term>
99 <listitem>
100 <para>This switch sets the location of the socket used by
101 <command>uuidd</command> and
102 <filename class="libraryfile">libuuid</filename> correctly.</para>
103 </listitem>
104 </varlistentry>
105
106 </variablelist>
107
108 <para>Compile the package:</para>
109
110<screen><userinput remap="make">make</userinput></screen>
111
112 <para>Install the package:</para>
113
114<screen><userinput remap="install">make install</userinput></screen>
115
116 </sect2>
117
118 <!-- - - - - - - - - - -->
119 <!-- Multilib - 32bit -->
120 <!-- - - - - - - - - - -->
121
122 <sect2 arch="ml_32,ml_all" role="installation">
123 <title>Installation of Util-linux - 32-bit</title>
124
125 <para>Clean previous build:</para>
126
127<screen><userinput remap="pre">make distclean</userinput></screen>
128
129 <para>Prepare Util-linux for compilation:</para>
130
131<screen><userinput remap="configure">CC="gcc -m32" \
132./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
133 --docdir=/usr/share/doc/util-linux-&util-linux-version; \
134 --disable-chfn-chsh \
135 --disable-login \
136 --disable-nologin \
137 --disable-su \
138 --disable-setpriv \
139 --disable-runuser \
140 --disable-pylibmount \
141 --disable-static \
142 --without-python \
143 --libdir=&usr-lib-m32; \
144 --host=i686-pc-linux-gnu</userinput></screen>
145
146 <para>Compile the package:</para>
147
148<screen><userinput remap="make">make</userinput></screen>
149
150 <para>Install the package:</para>
151
152<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
153cp -Rv DESTDIR&usr-lib-m32;/* &usr-lib-m32;
154rm -rf DESTDIR</userinput></screen>
155
156 </sect2><!-- m32 -->
157
158 <!-- - - - - - - - - - -->
159 <!-- Multilib - x32bit -->
160 <!-- - - - - - - - - - -->
161
162 <sect2 arch="ml_x32,ml_all" role="installation">
163 <title>Installation of Util-linux - x32-bit</title>
164
165 <para>Clean previous build:</para>
166
167<screen><userinput remap="pre">make distclean</userinput></screen>
168
169 <para>Prepare Util-linux for compilation:</para>
170
171<screen><userinput remap="configure">CC="gcc -mx32" \
172./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
173 --docdir=/usr/share/doc/util-linux-&util-linux-version; \
174 --disable-chfn-chsh \
175 --disable-login \
176 --disable-nologin \
177 --disable-su \
178 --disable-setpriv \
179 --disable-runuser \
180 --disable-pylibmount \
181 --disable-static \
182 --without-python \
183 --libdir=&usr-lib-mx32; \
184 --host=x86_64-pc-linux-gnux32</userinput></screen>
185
186 <para>Compile the package:</para>
187
188<screen><userinput remap="make">make</userinput></screen>
189
190 <para>Install the package:</para>
191
192<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
193cp -Rv DESTDIR&usr-lib-mx32;/* &usr-lib-mx32;
194rm -rf DESTDIR</userinput></screen>
195
196 </sect2><!-- mx32 -->
197
198 <sect2 role="content">
199 <title/>
200
201 <para>Details on this package are located in <xref linkend="contents-utillinux" role="."/></para>
202
203 </sect2>
204
205</sect1>
Note: See TracBrowser for help on using the repository browser.