Details on this package are located in Section 10.67.3, “Contents of Util-linux.”
The Util-linux package contains miscellaneous utility programs. Among them are utilities for handling file systems, consoles, partitions, and messages.
Prepare Util-linux for compilation:
./configure \
--prefix=/tools \
--build=${CLFS_HOST} \
--host=${CLFS_TARGET} \
--disable-makeinstall-chown \
--disable-makeinstall-setuid \
--disable-nologin \
--without-python
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.
Adjust the Makefile
sed -i 's/-lncursesw -ltinfo/-lncurses/' Makefile sed -i 's/LIBNCURSESW/LIBNCURSES/' config.h
Compile the package:
make
Install the package:
make install
Details on this package are located in Section 10.67.3, “Contents of Util-linux.”