5.20. Coreutils-8.23

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

Approximate build time: 0.6 SBU
Required disk space: 162 MB

5.20.1. Installation of Coreutils

Prepare Coreutils for compilation:

./configure --prefix=/tools --enable-install-program=hostname \
    --enable-no-install-program=kill

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.

--enable-no-install-program=kill

This disables the kill binary to be built and installed – it will be installed as part of util-linux later.

Compile the package:

make

Compilation is now complete. As discussed earlier, running the test suite is not mandatory for the temporary tools here in this chapter. To run the Coreutils test suite anyway, issue the following command:

make RUN_EXPENSIVE_TESTS=yes check

The RUN_EXPENSIVE_TESTS=yes parameter tells the test suite to run several additional tests that are considered relatively expensive (in terms of CPU power and memory usage) on some platforms, but generally are not a problem on Linux.

Install the package to a temporary directory:

make install DESTDIR=$(pwd)/debian/tmp

Create the package archive:

buildpkg --package=coreutils-pass1

Install the package:

dpkg -i ../coreutils-pass1_8.23_*.deb

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