5.14. Coreutils-6.11

The Coreutils package contains utilities for showing and setting the basic system characteristics.

User Notes: http://wiki.linuxfromscratch.org/hlfs/wiki/coreutils

5.14.1. Installation of Coreutils

Prepare Coreutils for compilation:

./configure --prefix=/tools --enable-install-program=hostname

The meaning of the configure options:

--enable-install-program=hostname

This enables the hostname binary to be built and installed – it is disabled by default but is required by the Perl test suite.

Compile the package:

make

Install the package:

make install

The above command refuses to install su because it cannot install it setuid root as a non-privileged user. By manually installing it with a different name, we can use it for running tests in the final system as a non-privileged user and we keep a possibly useful su from our host first place in our PATH. Install it with:

install -v src/su /tools/bin/su-tools

Details on this package are located in Section 6.15.2, “Contents of Coreutils.”