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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since de64fc88 was e5313c9, checked in by Chris Staub <chris@…>, 18 years ago

Clarify the reason for removing -o root from util-linux build

  • Property mode set to 100644
File size: 4.8 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]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
[480f54b]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
[d67c60d0]49 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
50 href="../../final-system/common/util-linux.xml"
51 xpointer="xpointer(//*[@os='p7'])"/>
52
53 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
54 href="../../final-system/common/util-linux.xml"
55 xpointer="xpointer(//*[@os='p8'])"/>
56
[3f8be484]57 <para os="ba">Util-linux does not use the freshly installed headers and
58 libraries from the <filename class="directory">/tools</filename>
[0220731]59 directory by default. This is fixed by altering the
60 <command>configure</command> script:</para>
[3f8be484]61
[eb55250]62<screen os="bb"><userinput>cp -v configure{,.orig}
[9176ba26]63sed -e 's@/usr/include@/tools/include@g' configure.orig &gt; configure</userinput></screen>
[3f8be484]64
[d5cf87a3]65 <para os="bc">The Util-linux installation uses <option>-o root</option>.
[e5313c9]66 As we are currently using an unprivileged user, this will not work. The
67 following <command>sed</command> removes it:</para>
[3f8be484]68
[eb55250]69<screen os="bd"><userinput>cp -v MCONFIG{,.orig}
[3f8be484]70sed -e 's|-o root||' MCONFIG.orig > MCONFIG</userinput></screen>
71
72 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
73 href="../../final-system/common/util-linux.xml"
[e0e40d3]74 xpointer="xpointer(//*[@os='a'])"/>
[3f8be484]75
[308a04c]76<screen os="be"><userinput>./configure</userinput></screen>
[3f8be484]77
78 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
79 href="../../final-system/common/util-linux.xml"
[e0e40d3]80 xpointer="xpointer(//*[@os='c'])"/>
[3f8be484]81
[4815e28]82<screen os="bf"><userinput>make HAVE_KILL=yes HAVE_SLN=yes \
[c3ed84c]83 HAVE_SHADOW=no CPUOPT="" ARCH="" \
84 CPU=""</userinput></screen>
[3f8be484]85
[308a04c]86 <variablelist os="bg">
[3f8be484]87 <title>The meaning of the make parameters:</title>
88
[6bb43b3]89 <varlistentry>
90 <term><parameter>HAVE_KILL=yes</parameter></term>
91 <listitem>
92 <para>This prevents the <command>kill</command> program
93 from being built.</para>
94 </listitem>
95 </varlistentry>
[3f8be484]96
97 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
98 href="../../final-system/common/util-linux.xml"
[e0e40d3]99 xpointer="xpointer(//*[@os='e2'])"/>
[3f8be484]100
101 <varlistentry>
102 <term><parameter>HAVE_SHADOW=no</parameter></term>
103 <listitem>
[4815e28]104 <para>This disables linking to shadow .</para>
[3f8be484]105 </listitem>
106 </varlistentry>
107
108 <varlistentry>
109 <term><parameter>CPUOPT=""</parameter></term>
110 <listitem>
[4815e28]111 <para>This disables any compiler optimizations by CPU type.</para>
[3f8be484]112 </listitem>
113 </varlistentry>
114
115 <varlistentry>
116 <term><parameter>ARCH=""</parameter></term>
117 <listitem>
[4815e28]118 <para>This disables the detection of the architecture.</para>
[3f8be484]119 </listitem>
120 </varlistentry>
121
122 <varlistentry>
123 <term><parameter>CPU=""</parameter></term>
124 <listitem>
[4815e28]125 <para>This disables the detection of the CPU.</para>
[3f8be484]126 </listitem>
127 </varlistentry>
128
129 </variablelist>
130
[308a04c]131 <para os="bh">Install the package:</para>
[3f8be484]132
[4815e28]133<screen os="bi"><userinput>make HAVE_KILL=yes HAVE_SLN=yes HAVE_SHADOW=no \
[c3ed84c]134 USE_TTY_GROUP=no CPUOPT="" ARCH="" \
[3f76cac]135 CPU="" DESTDIR=${CLFS} install</userinput></screen>
[3f8be484]136
137 </sect2>
138
139 <sect2 role="content">
140 <title/>
141
142 <para>Details on this package are located in <xref
143 linkend="contents-util-linux" role="."/></para>
144
145 </sect2>
146
147</sect1>
Note: See TracBrowser for help on using the repository browser.