source: BOOK/boot/common/e2fsprogs.xml@ 2beb5fd

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 2beb5fd was 2beb5fd, checked in by Jim Gifford <clfs@…>, 18 years ago

Update to build to fix e2fsprogs GLIBC Error

  • Property mode set to 100644
File size: 3.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 %general-entities;
6]>
7
8<sect1 id="ch-boot-e2fsprogs" role="wrap">
9 <?dbhtml filename="e2fsprogs.html"?>
10
11 <title>E2fsprogs-&e2fsprogs-version;</title>
12
13 <indexterm zone="ch-boot-e2fsprogs">
14 <primary sortas="a-E2fsprogs">E2fsprogs</primary>
15 <secondary>boot</secondary>
16 </indexterm>
17
18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
19 href="../../final-system/common/e2fsprogs.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
21
22 <sect2 role="installation">
23 <title>Installation of E2fsprogs</title>
24
25 <para os="s1">We will disable the building of the test progs. This
26 will prevent a glibc error during our build.</para>
27
28<screen os="s2"><userinput>cp Makefile.in{,.orig}
29sed -e 's@tests/progs@@g' Makefile.in.orig > Makefile.in </userinput></screen>
30
31 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
32 href="../../final-system/common/e2fsprogs.xml"
33 xpointer="xpointer(//*[@os='a'])"/>
34
35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
36 href="../../final-system/common/e2fsprogs.xml"
37 xpointer="xpointer(//*[@os='b'])"/>
38
39 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
40 href="../../final-system/common/e2fsprogs.xml"
41 xpointer="xpointer(//*[@os='c'])"/>
42
43<screen os="aa"><userinput>../configure --prefix=/tools \
44 --enable-elf-shlibs --disable-evms --with-cc=${CC} --with-linker=${LD} \
45 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen>
46
47 <variablelist os="e">
48 <title>The meaning of the configure options:</title>
49
50 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
51 href="../../final-system/common/e2fsprogs.xml"
52 xpointer="xpointer(//*[@os='e2'])"/>
53
54 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
55 href="../../final-system/common/e2fsprogs.xml"
56 xpointer="xpointer(//*[@os='e3'])"/>
57
58 </variablelist>
59
60 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
61 href="../../final-system/common/e2fsprogs.xml"
62 xpointer="xpointer(//*[@os='f'])"/>
63
64 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
65 href="../../final-system/common/e2fsprogs.xml"
66 xpointer="xpointer(//*[@os='g'])"/>
67
68 <para os="h">Install the binaries and documentation:</para>
69
70<screen os="i"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
71
72 <variablelist os="j">
73 <title>The meaning of the make option:</title>
74
75 <varlistentry>
76 <term><parameter>DESTDIR=${CLFS}</parameter></term>
77 <listitem>
78 <para>The Makefile for e2fsprogs hard-codes a path to the
79 <filename>mke2fs.conf</filename> file, attempting to install it into
80 ${DESTDIR}/etc, causing the installation to fail as it tries to write
81 to /etc. The DESTDIR parameter prevents this.</para>
82 </listitem>
83 </varlistentry>
84 </variablelist>
85
86 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
87 href="../../final-system/common/e2fsprogs.xml"
88 xpointer="xpointer(//*[@os='k'])"/>
89
90<screen os="l"><userinput>make DESTDIR=${CLFS} install-libs</userinput></screen>
91
92 <para os="ad">Create needed symlinks for a bootable system:</para>
93
94<screen os="ae"><userinput>ln -sv /tools/sbin/{fsck.ext2,fsck.ext3,e2fsck} ${CLFS}/sbin</userinput></screen>
95
96 </sect2>
97
98 <sect2 role="content">
99 <title/>
100
101 <para>Details on this package are located in <xref
102 linkend="contents-e2fsprogs" role="."/></para>
103
104 </sect2>
105
106</sect1>
Note: See TracBrowser for help on using the repository browser.