MidgardOS Developer Documentation

A website documenting creating the build root for MidgardOS


Section 3 - Temporary Tools

Navigation    
« GNU Bash HOME GNU Diffutils »

GNU Coreutils

Name: GNU Coreutils
Summary: Basic file, shell, and text utilities needed for working with any Linux system
License: GPL v3 or later
Version: 9.7
URL: https://ftp.gnu.org/gnu/coreutils/coreutils-9.7.tar.xz

Configuration

To configure GNU Coreutils for install into the build root, run the following command:

./configure --prefix=/usr                     \
            --libdir=/usr/lib64               \
            --libexecdir=/usr/lib64           \
            --host=$BRFS_TARGET               \
            --build=$BRFS_HOST                \
            --enable-no-install-program=kill,uptime,hostname

The --enable-no-install-program is to allow them to come from other packages:

Compilation and Installation

To compile GNU Coreutils, run the following command:

make

Finally, to install GNU Coreutils into the build tree, run the following command:

make DESTDIR=${BRFS} install
mkdir -pv $BRFS/usr/share/man/man8
mv -v $BRFS/usr/share/man/man1/chroot.1 $BRFS/usr/share/man/man8/chroot.8
sed -i 's/"1"/"8"/'                     $BRFS/usr/share/man/man8/chroot.8

More details about this package is covered later in the core system build.

Navigation    
« GNU Bash HOME GNU Diffutils »