For the embedded CLFS book.

This fixes problem listed in trac ticket #745 that Nazmul was having (see
http://lists.cross-lfs.org/pipermail/clfs-support-cross-lfs.org/2011-January/001110.html)
and updates e2fsprogs to version 1.41.14 (newest stable version).

Patch attached.  It should have everything correct. I successfully built
e2fsprogs for ARM with the changed instructions, but it'd be best if someone
can check it.

Thanks,
Andrew
From 95906c4161b41968b009e1c76e7520f5f73b0a9e Mon Sep 17 00:00:00 2001
From: Andrew Bradford <[email protected]>
Date: Sun, 9 Jan 2011 12:32:05 -0500
Subject: [PATCH] Updated e2fsprogs to version 1.41.14

Updated e2fsprogs to version 1.41.14 and changed some configure switches
because debugfs and e2initrd-helper want to find utime.h but can't seem to.
See trac ticket refs #745
---
 BOOK/final-system/common/e2fsprogs.xml |  105 ++++++++++++++++++++------------
 BOOK/packages.ent                      |    6 +-
 2 files changed, 68 insertions(+), 43 deletions(-)

diff --git a/BOOK/final-system/common/e2fsprogs.xml b/BOOK/final-system/common/e2fsprogs.xml
index eb1b6cb..85a037f 100644
--- a/BOOK/final-system/common/e2fsprogs.xml
+++ b/BOOK/final-system/common/e2fsprogs.xml
@@ -19,8 +19,9 @@
 
     <para>The E2fsprogs package contains the utilities for handling the
     <systemitem class="filesystem">ext2</systemitem> file system. It also
-    supports the <systemitem class="filesystem">ext3</systemitem> journaling
-    file system.</para>
+    supports the <systemitem class="filesystem">ext3</systemitem> and 
+    <systemitem class="filesystem">ext4</systemitem> journaling
+    file systems.</para>
 
   </sect2>
 
@@ -36,8 +37,8 @@ cd build</userinput></screen>
     <para os="c">Prepare E2fsprogs for compilation:</para>
 
 <screen os="d"><userinput>CC="${CC} ${BUILD} -Os" ../configure --prefix=/usr \
-  --with-root-prefix="" --host=${CLFS_TARGET} --with-cc="${CC} ${BUILD} -Os" \
-  --with-linker=${LD} --disable-tls</userinput></screen>
+	--with-root-prefix="" --host=${CLFS_TARGET} --disable-tls \
+	--disable-debugfs --disable-e2initrd-helper --disable-nls</userinput></screen>
 
     <variablelist os="e">
       <title>The meaning of the configure options:</title>
@@ -56,27 +57,41 @@ cd build</userinput></screen>
         </listitem>
       </varlistentry>
 
-      <varlistentry os="e2">
-        <term><parameter>--enable-elf-shlibs</parameter></term>
-        <listitem>
-          <para>This creates the shared libraries which some programs
-          in this package use.</para>
-        </listitem>
-      </varlistentry>
+	<varlistentry os="e2">
+		<term><parameter>--disable-tls</parameter></term>
+		<listitem>
+			<para>Disable thread local support</para>
+		</listitem>
+	</varlistentry>
 
-      <varlistentry os="e3">
-        <term><parameter>--disable-evms</parameter></term>
-        <listitem>
-          <para>This disables the building of the Enterprise Volume
-          Management System (EVMS) plugin. This plugin is not up-to-date with
-          the latest EVMS internal interfaces and EVMS is not installed as part
-          of a base CLFS system, so the plugin is not required. See the EVMS
-          website at <ulink url="http://evms.sourceforge.net/"/> for more
-          information regarding EVMS.</para>
-        </listitem>
-      </varlistentry>
+    	<varlistentry os="e3">
+		<term><parameter>--disable-debugfs</parameter></term>
+		<listitem>
+			<para>Disable building of the debugfs program.
+			The debugfs program relies upon utime.h which is not
+			available in the embedded system.</para>
+		</listitem>
+	</varlistentry>
+
+	<varlistentry os="e4">
+		<term><parameter>--disable-e2initrd-helper</parameter></term>
+		<listitem>
+			<para>Disable building of the e2initrd-helper.
+			The e2initrd-helper program relies upon utime.h which is not
+			available in the embedded system.</para>
+		</listitem>
+	</varlistentry>
+
+	<varlistentry os="e5">
+		<term><parameter>--disable-nls</parameter></term>
+		<listitem>
+			<para>Disable native language support.</para>
+		</listitem>
+	</varlistentry>
+
+
+      </variablelist>
 
-    </variablelist>
 
     <para os="f">Compile the package:</para>
 
@@ -100,10 +115,10 @@ cd build</userinput></screen>
       <segtitle>Installed libraries</segtitle>
 
       <seglistitem>
-        <seg>badblocks, blkid, chattr, compile_et, debugfs, dumpe2fs,
-        e2fsck, e2image, e2label, filefrag, findfs, fsck, fsck.ext2, fsck.ext3,
-        logsave, lsattr, mk_cmds, mke2fs, mkfs.ext2, mkfs.ext3,
-        mklost+found, resize2fs, tune2fs, and uuidgen.</seg>
+        <seg>badblocks, blkid, chattr, compile_et, dumpe2fs,
+	e2fsck, e2image, e2label, filefrag, findfs, fsck, fsck.ext2, fsck.ext3,
+	fsck.ext4, logsave, lsattr, mk_cmds, mke2fs, mkfs.ext2, mkfs.ext3, 
+	mkfs.ext4, mklost+found, resize2fs, tune2fs, and uuidgen.</seg>
         <seg>libblkid.[a,so], libcom_err.[a,so], libe2p.[a,so],
         libext2fs.[a,so], libss.[a,so], and libuuid.[a,so]</seg>
       </seglistitem>
@@ -162,18 +177,6 @@ cd build</userinput></screen>
         </listitem>
       </varlistentry>
 
-      <varlistentry id="debugfs">
-        <term><command>debugfs</command></term>
-        <listitem>
-          <para>A file system debugger; it can be used to examine and change
-          the state of an <systemitem class="filesystem">ext2</systemitem>
-          file system</para>
-          <indexterm zone="ch-system-e2fsprogs debugfs">
-            <primary sortas="b-debugfs">debugfs</primary>
-          </indexterm>
-        </listitem>
-      </varlistentry>
-
       <varlistentry id="dumpe2fs">
         <term><command>dumpe2fs</command></term>
         <listitem>
@@ -273,6 +276,17 @@ cd build</userinput></screen>
         </listitem>
       </varlistentry>
 
+      <varlistentry id="fsck.ext4">
+        <term><command>fsck.ext4</command></term>
+        <listitem>
+          <para>By default checks <systemitem class="filesystem">ext4</systemitem>
+          file systems</para>
+          <indexterm zone="ch-system-e2fsprogs fsck.ext4">
+            <primary sortas="b-fsck.ext4">fsck.ext4</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
       <varlistentry id="logsave">
         <term><command>logsave</command></term>
         <listitem>
@@ -340,6 +354,17 @@ cd build</userinput></screen>
         </listitem>
       </varlistentry>
 
+      <varlistentry id="mkfs.ext4">
+        <term><command>mkfs.ext4</command></term>
+        <listitem>
+          <para>By default creates <systemitem class="filesystem">ext4</systemitem>
+          file systems</para>
+          <indexterm zone="ch-system-e2fsprogs mkfs.ext4">
+            <primary sortas="b-mkfs.ext4">mkfs.ext4</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
       <varlistentry id="mklost-found">
         <term><command>mklost+found</command></term>
         <listitem>
@@ -433,7 +458,7 @@ cd build</userinput></screen>
       <varlistentry id="libss">
         <term><filename class="libraryfile">libss</filename></term>
         <listitem>
-          <para>Used by <command>debugfs</command></para>
+          <para>Contains routines for command line interface parsing</para>
           <indexterm zone="ch-system-e2fsprogs libss">
             <primary sortas="c-libss">libss</primary>
           </indexterm>
diff --git a/BOOK/packages.ent b/BOOK/packages.ent
index c7c4bc0..3f78fa7 100644
--- a/BOOK/packages.ent
+++ b/BOOK/packages.ent
@@ -22,10 +22,10 @@
 <!ENTITY clfs-bootscripts-md5 "727fb1b0d8913a63fc96123300fc5c0c">
 <!ENTITY clfs-bootscripts-home " ">
 
-<!ENTITY e2fsprogs-version "1.41.4">
-<!ENTITY e2fsprogs-size "4,286 KB">
+<!ENTITY e2fsprogs-version "1.41.14">
+<!ENTITY e2fsprogs-size "4,407 KB">
 <!ENTITY e2fsprogs-url "&sourceforge;e2fsprogs/e2fsprogs-&e2fsprogs-version;.tar.gz">
-<!ENTITY e2fsprogs-md5 "59033388df36987d2b9c9bbf7e19bd57">
+<!ENTITY e2fsprogs-md5 "05f70470aea2ef7efbb0845b2b116720">
 <!ENTITY e2fsprogs-home "http://e2fsprogs.sourceforge.net";>
 
 <!ENTITY gcc-version "4.5.1">
-- 
1.5.6.5

_______________________________________________
Clfs-dev mailing list
[email protected]
http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org

Reply via email to