source: chapter07/util-linux.xml@ 37e35d2

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

Update to new lfs structure

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

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