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