7.5. E2fsprogs-1.41.1

The E2fsprogs package contains the utilities for handling the ext2 file system. It also supports the ext3 journaling file system.

7.5.1. Installation of E2fsprogs

The following command adds libcom_err.so to the list of libraries to link libblkid.so to:

cp -v misc/Makefile.in{,.orig}
sed 's/_BLKID= .*$/& $(LIBCOM_ERR)/' \
    misc/Makefile.in.orig > misc/Makefile.in

The E2fsprogs documentation recommends that the package be built in a subdirectory of the source tree:

mkdir -v build
cd build

Prepare E2fsprogs for compilation:

../configure --prefix=/tools \
    --enable-elf-shlibs --disable-evms --with-cc=${CC} --with-linker=${LD} \
    --build=${CLFS_HOST} --host=${CLFS_TARGET}

The meaning of the configure options:

--enable-elf-shlibs

This creates the shared libraries which some programs in this package use.

--disable-evms

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 http://evms.sourceforge.net/ for more information regarding EVMS.

Compile the package:

make

Install the binaries, documentation and shared libraries:

make DESTDIR="${CLFS}" install

Install the static libraries and headers:

make install-libs

Create needed symlinks for a bootable system:

ln -sv /tools/sbin/{fsck.ext2,fsck.ext3,e2fsck} ${CLFS}/sbin

Details on this package are located in Section 10.14.2, “Contents of E2fsprogs.”