8.2. Util-linux-2.12r

The Util-linux package contains miscellaneous utility programs. Among them are utilities for handling file systems, consoles, partitions, and messages.

8.2.1. Installation of Util-linux

The following patch fixes build issues with GCC 4.1.1:

patch -Np1 -i ../util-linux-2.12r-gcc4_fixes-1.patch

Util-linux does not use the freshly installed headers and libraries from the /tools directory by default. This is fixed by altering the configure script:

cp -v configure{,.orig}
sed -e 's@/usr/include@/tools/include@g' configure.orig > configure

Prepare Util-linux for compilation:

CC="${CC} ${BUILD64}" ./configure

Compile some support routines:

make ARCH="" CPU="" -C lib

The meaning of the make parameters:

ARCH=""

This disables the detection of the architecture.

CPU=""

This disables the detection of the CPU.

Only a few of the utilities contained in this package need to be built:

make ARCH="" CPU="" -C mount mount umount
make ARCH="" CPU="" -C text-utils more

Copy these programs to the temporary tools directory:

cp -v mount/{,u}mount text-utils/more /tools/bin

Details on this package are located in Section 10.52.3, “Contents of Util-linux.”