source: chapter05/util-linux.xml@ 9c31d62

ml-11.0 multilib
Last change on this file since 9c31d62 was fd48baa, checked in by Xℹ Ruoyao <xry111@…>, 3 years ago

Change profiling attribute to enable selection of m32 and/or mx32. Fixes #4452.

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

  • Property mode set to 100644
File size: 5.8 KB
RevLine 
[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
[cc09c07]8<sect1 id="ch-tools-util-linux" role="wrap" revision="systemd">
[cb23c1a]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
[98d9003]46<screen><userinput remap="configure">./configure --prefix=/tools \
[14109e7]47 --without-python \
[8ad94ab]48 --disable-makeinstall-chown \
49 --without-systemdsystemunitdir \
[98d9003]50 --without-ncurses \
[a840e59]51 PKG_CONFIG=""</userinput></screen>
[cb23c1a]52
53 <variablelist>
54 <title>The meaning of the configure option:</title>
55
[14109e7]56 <varlistentry>
57 <term><parameter>--without-python</parameter></term>
58 <listitem>
59 <para>This switch disables using <application>Python</application>
60 if it is installed on the host system. It avoids trying to build
61 unneeded bindings.</para>
62 </listitem>
63 </varlistentry>
64
[cb23c1a]65 <varlistentry>
66 <term><parameter>--disable-makeinstall-chown</parameter></term>
67 <listitem>
68 <para>This switch disables using the <command>chown</command> command
69 during installation. This is not needed when installing into the
70 /tools directory and avoids the necessity of installing as
71 root.</para>
72 </listitem>
73 </varlistentry>
[71e0f49]74
[98d9003]75 <varlistentry>
76 <term><parameter>--without-ncurses</parameter></term>
77 <listitem>
78 <para>This switch disables using the ncurses library for
79 the build process. This is not needed when installing into the
80 /tools directory and avoids problems on some host distros.</para>
81 </listitem>
82 </varlistentry>
83
[71e0f49]84 <varlistentry>
85 <term><parameter>--without-systemdsystemunitdir</parameter></term>
86 <listitem>
87 <para>On systems that use systemd, the package tries to install
88 a systemd specific file to a non-existent directory in /tools.
89 This switch disables the unnecessary action.</para>
90 </listitem>
91 </varlistentry>
[8ad94ab]92
93 <varlistentry>
94 <term><envar>PKG_CONFIG=""</envar></term>
95 <listitem>
[bfd117b]96 <para>Setting this environment variable prevents adding unneeded
[de7475be]97 features that may be available on the host. Note that the location
98 shown for setting this environment variable is different from other
[e043985]99 LFS sections where variables are set preceding the command. This
[de7475be]100 location is shown to demonstrate an alternative way of setting an
101 environment variable when using configure.</para>
[8ad94ab]102 </listitem>
103 </varlistentry>
[cb23c1a]104 </variablelist>
105
106 <para>Compile the package:</para>
107
108<screen><userinput remap="make">make</userinput></screen>
109
110 <para>Install the package:</para>
111
112<screen><userinput remap="install">make install</userinput></screen>
113
114 </sect2>
115
[597ec03]116 <sect2 role="content">
117 <title/>
118
119 <para>Details on this package are located in
120 <xref linkend="contents-utillinux" role="."/></para>
121
122 </sect2>
123
[fd48baa]124 <sect2 arch="ml_32,ml_all" role="installation">
[b3f1ebb3]125 <title>Installation of Util-Linux - 32 bit</title>
126
127 <para>Prepare Util-Linux for compilation:</para>
128
129<screen><userinput remap="configure">make distclean &amp;&amp;
130CC="${LFS_TGT}-gcc -m32" \
131./configure \
132 --prefix=/tools \
133 --libdir=/tools/lib32 \
134 --without-python \
135 --disable-makeinstall-chown \
136 --without-systemdsystemunitdir \
137 --without-ncurses \
138 --host="${LFS_TGT32}" \
139 PKG_CONFIG=""</userinput></screen>
140
141 <para>Compile the package:</para>
142
143<screen><userinput remap="make">make</userinput></screen>
144
145 <para>To test the results, issue:</para>
146
147<screen><userinput remap="test">make check</userinput></screen>
148
149 <para>Install the package:</para>
150
151<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR_32 install &amp;&amp;
152cp -Rv DESTDIR_32/tools/lib32/* /tools/lib32</userinput></screen>
153
154 </sect2>
155
[fd48baa]156 <sect2 arch="ml_x32,ml_all" role="installation">
[b3f1ebb3]157 <title>Installation of Util-Linux - x32 bit</title>
158
159 <para>Repeat for the x32-ABI:</para>
160
161<screen><userinput remap="configure">make distclean &amp;&amp;
162CC="${LFS_TGT}-gcc -mx32" \
163./configure \
164 --prefix=/tools \
165 --libdir=/tools/libx32 \
166 --without-python \
167 --disable-makeinstall-chown \
168 --without-systemdsystemunitdir \
169 --without-ncurses \
170 --host="${LFS_TGTX32}" \
171 PKG_CONFIG=""</userinput></screen>
172
173<screen><userinput remap="make">make</userinput></screen>
174
175<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR_x32 install &amp;&amp;
176cp -Rv DESTDIR_x32/tools/libx32/* /tools/libx32</userinput></screen>
177
178 </sect2>
179
[cb23c1a]180</sect1>
Note: See TracBrowser for help on using the repository browser.