source: boot/common/util-linux.xml@ 4da503a

Last change on this file since 4da503a was 04ef3790, checked in by Jim Gifford <clfs@…>, 19 years ago

r2897@server (orig r1385): jciccone | 2006-04-14 18:09:37 -0700
Added a util-linux and kernel patch that fix the sun disklabel checksum problem.

  • Property mode set to 100644
File size: 4.4 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 %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
18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
19 href="../../final-system/common/util-linux.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
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"
27 xpointer="xpointer(//*[@os='p1'])"/>
28
29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
30 href="../../final-system/common/util-linux.xml"
31 xpointer="xpointer(//*[@os='p2'])"/>
32
33 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
34 href="../../final-system/common/util-linux.xml"
35 xpointer="xpointer(//*[@os='p3'])"/>
36
37 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
38 href="../../final-system/common/util-linux.xml"
39 xpointer="xpointer(//*[@os='p4'])"/>
40
41 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
42 href="../../final-system/common/util-linux.xml"
43 xpointer="xpointer(//*[@os='p5'])"/>
44
45 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
46 href="../../final-system/common/util-linux.xml"
47 xpointer="xpointer(//*[@os='p6'])"/>
48
49 <para os="ba">Util-linux does not use the freshly installed headers and
50 libraries from the <filename class="directory">/tools</filename>
51 directory by default. This is fixed by altering the configure script:</para>
52
53<screen os="bb"><userinput>cp -v configure{,.orig}
54sed -e 's@/usr/include@/tools/include@g' configure.orig > configure</userinput></screen>
55
56 <para os="bc">The Util-linux installation uses <option>-o root</option>.
57 The following <command>sed</command> removes that since we don't have
58 users setup yet:</para>
59
60<screen os="bd"><userinput>cp -v MCONFIG{,.orig}
61sed -e 's|-o root||' MCONFIG.orig > MCONFIG</userinput></screen>
62
63 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
64 href="../../final-system/common/util-linux.xml"
65 xpointer="xpointer(//*[@os='a'])"/>
66
67<screen os="be"><userinput>./configure</userinput></screen>
68
69 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
70 href="../../final-system/common/util-linux.xml"
71 xpointer="xpointer(//*[@os='c'])"/>
72
73<screen os="bf"><userinput>make HAVE_KILL=yes HAVE_SLN=yes \
74HAVE_SHADOW=no CPUOPT="" ARCH="" \
75CPU=""</userinput></screen>
76
77 <variablelist os="bg">
78 <title>The meaning of the make parameters:</title>
79
80 <varlistentry>
81 <term><parameter>HAVE_KILL=yes</parameter></term>
82 <listitem>
83 <para>This prevents the <command>kill</command> program
84 from being built.</para>
85 </listitem>
86 </varlistentry>
87
88 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
89 href="../../final-system/common/util-linux.xml"
90 xpointer="xpointer(//*[@os='e2'])"/>
91
92 <varlistentry>
93 <term><parameter>HAVE_SHADOW=no</parameter></term>
94 <listitem>
95 <para>This disables linking to shadow .</para>
96 </listitem>
97 </varlistentry>
98
99 <varlistentry>
100 <term><parameter>CPUOPT=""</parameter></term>
101 <listitem>
102 <para>This disables any compiler optimizations by CPU type.</para>
103 </listitem>
104 </varlistentry>
105
106 <varlistentry>
107 <term><parameter>ARCH=""</parameter></term>
108 <listitem>
109 <para>This disables the detection of the architecture.</para>
110 </listitem>
111 </varlistentry>
112
113 <varlistentry>
114 <term><parameter>CPU=""</parameter></term>
115 <listitem>
116 <para>This disables the detection of the CPU.</para>
117 </listitem>
118 </varlistentry>
119
120 </variablelist>
121
122 <para os="bh">Install the package:</para>
123
124<screen os="bi"><userinput>make HAVE_KILL=yes HAVE_SLN=yes HAVE_SHADOW=no \
125USE_TTY_GROUP=no CPUOPT="" ARCH="" \
126CPU="" DESTDIR=${LFS} install</userinput></screen>
127
128 </sect2>
129
130 <sect2 role="content">
131 <title/>
132
133 <para>Details on this package are located in <xref
134 linkend="contents-util-linux" role="."/></para>
135
136 </sect2>
137
138</sect1>
Note: See TracBrowser for help on using the repository browser.