source: BOOK/boot/common/util-linux.xml@ c22a40a

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since c22a40a was 6bb43b3, checked in by Jim Gifford <clfs@…>, 19 years ago

r788@server (orig r786): jim | 2005-12-01 12:07:35 -0800

r851@server: jim | 2005-12-01 12:07:08 -0800
Text updates from G. Moko. Thank You


  • Property mode set to 100644
File size: 4.3 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-boot-util-linux" role="wrap">
9 <?dbhtml filename="util-linux.html"?>
10
11 <title>Util-linux-&util-linux-version;</title>
12
13 <indexterm zone="ch-boot-util-linux">
14 <primary sortas="a-Util-linux">Util-linux</primary>
15 <secondary>boot</secondary>
16 </indexterm>
17
[93adf44a]18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
19 href="../../final-system/common/util-linux.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
[3f8be484]21
22 <sect2 role="installation">
23 <title>Installation of Util-linux</title>
24
25 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
26 href="../../final-system/common/util-linux.xml"
[e0e40d3]27 xpointer="xpointer(//*[@os='p1'])"/>
[3f8be484]28
29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
30 href="../../final-system/common/util-linux.xml"
[e0e40d3]31 xpointer="xpointer(//*[@os='p2'])"/>
[3f8be484]32
33 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
34 href="../../final-system/common/util-linux.xml"
[e0e40d3]35 xpointer="xpointer(//*[@os='p3'])"/>
[3f8be484]36
37 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
38 href="../../final-system/common/util-linux.xml"
[e0e40d3]39 xpointer="xpointer(//*[@os='p4'])"/>
[3f8be484]40
41 <para os="ba">Util-linux does not use the freshly installed headers and
42 libraries from the <filename class="directory">/tools</filename>
43 directory by default. This is fixed by altering the configure script:</para>
44
45<screen os="bb"><userinput>cp configure{,.orig}
46sed -e 's@/usr/include@/tools/include@g' configure.orig > configure</userinput></screen>
47
48 <para os="bc">Util-linux installs uses <option>-o root</option>, the following
49 <command>sed</command> removes that since we don't have users setup
50 yet:</para>
51
52<screen os="bd"><userinput>cp MCONFIG{,.orig}
53sed -e 's|-o root||' MCONFIG.orig > MCONFIG</userinput></screen>
54
55 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
56 href="../../final-system/common/util-linux.xml"
[e0e40d3]57 xpointer="xpointer(//*[@os='a'])"/>
[3f8be484]58
[308a04c]59<screen os="be"><userinput>./configure</userinput></screen>
[3f8be484]60
61 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
62 href="../../final-system/common/util-linux.xml"
[e0e40d3]63 xpointer="xpointer(//*[@os='c'])"/>
[3f8be484]64
[4815e28]65<screen os="bf"><userinput>make HAVE_KILL=yes HAVE_SLN=yes \
66HAVE_SHADOW=no CPUOPT="" ARCH="" \
67CPU=""</userinput></screen>
[3f8be484]68
[308a04c]69 <variablelist os="bg">
[3f8be484]70 <title>The meaning of the make parameters:</title>
71
[6bb43b3]72 <varlistentry>
73 <term><parameter>HAVE_KILL=yes</parameter></term>
74 <listitem>
75 <para>This prevents the <command>kill</command> program
76 from being built.</para>
77 </listitem>
78 </varlistentry>
[3f8be484]79
80 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
81 href="../../final-system/common/util-linux.xml"
[e0e40d3]82 xpointer="xpointer(//*[@os='e2'])"/>
[3f8be484]83
84 <varlistentry>
85 <term><parameter>HAVE_SHADOW=no</parameter></term>
86 <listitem>
[4815e28]87 <para>This disables linking to shadow .</para>
[3f8be484]88 </listitem>
89 </varlistentry>
90
91 <varlistentry>
92 <term><parameter>CPUOPT=""</parameter></term>
93 <listitem>
[4815e28]94 <para>This disables any compiler optimizations by CPU type.</para>
[3f8be484]95 </listitem>
96 </varlistentry>
97
98 <varlistentry>
99 <term><parameter>ARCH=""</parameter></term>
100 <listitem>
[4815e28]101 <para>This disables the detection of the architecture.</para>
[3f8be484]102 </listitem>
103 </varlistentry>
104
105 <varlistentry>
106 <term><parameter>CPU=""</parameter></term>
107 <listitem>
[4815e28]108 <para>This disables the detection of the CPU.</para>
[3f8be484]109 </listitem>
110 </varlistentry>
111
112 </variablelist>
113
[308a04c]114 <para os="bh">Install the package:</para>
[3f8be484]115
[4815e28]116<screen os="bi"><userinput>make HAVE_KILL=yes HAVE_SLN=yes HAVE_SHADOW=no \
117USE_TTY_GROUP=no CPUOPT="" ARCH="" \
118CPU="" DESTDIR=${LFS} install</userinput></screen>
[3f8be484]119
[308a04c]120 <para os="bj">Now we will put a copy of mount in <filename
[3f8be484]121 class="directory">/tools/bin</filename>:</para>
122
[308a04c]123<screen os="bk"><userinput>cp ${LFS}/bin/mount /tools/bin</userinput></screen>
[3f8be484]124
125 </sect2>
126
127 <sect2 role="content">
128 <title/>
129
130 <para>Details on this package are located in <xref
131 linkend="contents-util-linux" role="."/></para>
132
133 </sect2>
134
135</sect1>
Note: See TracBrowser for help on using the repository browser.