The Coreutils package contains utilities for showing and setting the basic system characteristics.
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.10-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.10-i18n-1.patch
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