6.27. Util-linux-2.29.2

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

6.27.1. Installation of Util-linux

Prepare Util-linux for compilation:

PKG_CONFIG_PATH="" ./configure \
    --prefix=/tools \
    --build=${CLFS_HOST} \
    --host=${CLFS_TARGET} \
    --libdir='${prefix}'/lib64 \
    --disable-makeinstall-chown \
    --disable-makeinstall-setuid \
    --disable-nologin \
    --without-python

Adjust the Makefile

sed -i 's/-lncursesw -ltinfo/-lncurses/' Makefile
sed -i 's/LIBNCURSESW/LIBNCURSES/' config.h

The meaning of the new configure option:

--disable-makeinstall-chown

This prevents Util-linux from trying to perform any chown commands when it is installed.

--disable-makeinstall-setuid

This prevents Util-linux from enabling the setuid bit on any of its installed programs.

--disable-nologin

This prevents Util-linux from installing nologin.

--without-python

This avoids the building of unneeded Python bindings when Python is installed on the host system.

Compile the package:

make

Install the package:

make install

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