source: boot/common/util-linux.xml@ 6863182

Last change on this file since 6863182 was bf8c11f, checked in by Jim Gifford <clfs@…>, 19 years ago

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

  • Property mode set to 100644
File size: 4.6 KB
Line 
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 <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6 %general-entities;
7 %patches-entities;
8]>
9
10<sect1 id="ch-boot-util-linux" role="wrap">
11 <?dbhtml filename="util-linux.html"?>
12
13 <title>Util-linux-&util-linux-version;</title>
14
15 <indexterm zone="ch-boot-util-linux">
16 <primary sortas="a-Util-linux">Util-linux</primary>
17 <secondary>boot</secondary>
18 </indexterm>
19
20 <sect2 role="package">
21 <title/>
22
23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
24 href="../../final-system/common/util-linux.xml"
25 xpointer="xpointer(//*[@role='package']/para[1])"/>
26
27 <segmentedlist>
28 <segtitle>&buildtime;</segtitle>
29 <segtitle>&diskspace;</segtitle>
30
31 <seglistitem>
32 <seg>Not checked yet</seg>
33 <seg>Not checked yet</seg>
34 </seglistitem>
35 </segmentedlist>
36
37 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
38 href="../../final-system/common/util-linux.xml"
39 xpointer="xpointer(//*[@role='package']/segmentedlist[2])"/>
40
41 </sect2>
42
43 <sect2 role="installation">
44 <title>Installation of Util-linux</title>
45
46 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
47 href="../../final-system/common/util-linux.xml"
48 xpointer="xpointer(//*[@os='a'])"/>
49
50 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
51 href="../../final-system/common/util-linux.xml"
52 xpointer="xpointer(//*[@os='b'])"/>
53
54 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
55 href="../../final-system/common/util-linux.xml"
56 xpointer="xpointer(//*[@os='b1'])"/>
57
58 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
59 href="../../final-system/common/util-linux.xml"
60 xpointer="xpointer(//*[@os='b2'])"/>
61
62 <para os="ba">Util-linux does not use the freshly installed headers and
63 libraries from the <filename class="directory">/tools</filename>
64 directory by default. This is fixed by altering the configure script:</para>
65
66<screen os="bb"><userinput>cp configure{,.orig}
67sed -e 's@/usr/include@/tools/include@g' configure.orig > configure</userinput></screen>
68
69 <para os="bc">Util-linux installs uses <option>-o root</option>, the following
70 <command>sed</command> removes that since we don't have users setup
71 yet:</para>
72
73<screen os="bd"><userinput>cp MCONFIG{,.orig}
74sed -e 's|-o root||' MCONFIG.orig > MCONFIG</userinput></screen>
75
76 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
77 href="../../final-system/common/util-linux.xml"
78 xpointer="xpointer(//*[@os='c'])"/>
79
80<screen><userinput>./configure</userinput></screen>
81
82 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
83 href="../../final-system/common/util-linux.xml"
84 xpointer="xpointer(//*[@os='d'])"/>
85
86<screen os="be"><userinput>make HAVE_KILL=yes HAVE_SLN=yes HAVE_SHADOW=no CPUOPT="" ARCH="" CPU=""</userinput></screen>
87
88 <variablelist os="bf">
89 <title>The meaning of the make parameters:</title>
90
91 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
92 href="../../final-system/common/util-linux.xml"
93 xpointer="xpointer(//*[@os='fa'])"/>
94
95 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
96 href="../../final-system/common/util-linux.xml"
97 xpointer="xpointer(//*[@os='fb'])"/>
98
99 <varlistentry>
100 <term><parameter>HAVE_SHADOW=no</parameter></term>
101 <listitem>
102 <para>This do ... .</para>
103 </listitem>
104 </varlistentry>
105
106 <varlistentry>
107 <term><parameter>CPUOPT=""</parameter></term>
108 <listitem>
109 <para>This do ... .</para>
110 </listitem>
111 </varlistentry>
112
113 <varlistentry>
114 <term><parameter>ARCH=""</parameter></term>
115 <listitem>
116 <para>This do ... .</para>
117 </listitem>
118 </varlistentry>
119
120 <varlistentry>
121 <term><parameter>CPU=""</parameter></term>
122 <listitem>
123 <para>This do ... .</para>
124 </listitem>
125 </varlistentry>
126
127 </variablelist>
128
129 <para os="bg">Install the package:</para>
130
131<screen os="bh"><userinput>make HAVE_KILL=yes HAVE_SLN=yes HAVE_SHADOW=no USE_TTY_GROUP=no CPUOPT="" ARCH="" CPU="" DESTDIR=${LFS} install</userinput></screen>
132
133 <para os="bi">Now we will put a copy of mount in <filename
134 class="directory">/tools/bin</filename>:</para>
135
136<screen os="bj"><userinput>cp ${LFS}/bin/mount /tools/bin</userinput></screen>
137
138 </sect2>
139
140 <sect2 role="content">
141 <title/>
142
143 <para>Details on this package are located in <xref
144 linkend="contents-util-linux" role="."/></para>
145
146 </sect2>
147
148</sect1>
Note: See TracBrowser for help on using the repository browser.