
Linux From Scratch - Version 7.0
123
6.23. Coreutils-8.14
The Coreutils package contains utilities for showing and setting the basic system characteristics.
Approximate build time: 3.2 SBU
Required disk space: 99 MB
6.23.1. Installation of Coreutils
A known issue with the uname program from this package is that the -p switch always returns unknown. The
following patch fixes this behavior for Intel architectures:
case `uname -m` in
i?86 | x86_64) patch -Np1 -i ../coreutils-8.14-uname-1.patch ;;
esac
POSIX requires that programs from Coreutils recognize character boundaries correctly even in multibyte locales. The
following patch fixes this non-compliance and other internationalization-related bugs:
patch -Np1 -i ../coreutils-8.14-i18n-1.patch
Note
In the past, many bugs were found in this patch. When reporting new bugs to Coreutils maintainers, please
check first if they are reproducible without this patch.
Now prepare Coreutils for compilation:
./configure --prefix=/usr \
--enable-no-install-program=kill,uptime
The meaning of the configure options:
--enable-no-install-program=kill,uptime
The purpose of this switch is to prevent Coreutils from installing binaries that will be installed by other packages
later.
Compile the package:
make
Skip down to “Install the package” if not running the test suite.
Now the test suite is ready to be run. First, run the tests that are meant to be run as user root:
make NON_ROOT_USERNAME=nobody check-root
We're going to run the remainder of the tests as the nobody user. Certain tests, however, require that the user be a
member of more than one group. So that these tests are not skipped we'll add a temporary group and make the user
nobody a part of it:
echo "dummy:x:1000:nobody" >> /etc/group
Comentarios a estos manuales