qLinux
… a distribution study


<< Prev
Libelf

Next >>
Diffutils


Coreutils-8.32

Reference: 8.53. Coreutils-8.32. Fix the build system:

patch -Np1 -i coreutils-8.32-bld-20220207.patch

Apply a patch to fix some source files:

patch -Np1 -i coreutils-8.32-src-20220222.patch

We do not apply the “POSIX patch” like in the book, thus we don't need to run  autoreconf . Configure the package:

FORCE_UNSAFE_CONFIGURE=1 ./configure \
            --prefix=/qlnx \
            --enable-no-install-program=kill,uptime \
            --libexecdir=/qlnx/bin/libexec \
            --mandir=/qlnx/man \
            --infodir=/tmp

Build and install coreutils:

make
make install

Fix the chroot thingy:

chmod 754 /qlnx/bin/chroot
mv /qlnx/man/man1/chroot.1 /qlnx/man/man8/chroot.8
sed -i 's/"1"/"8"/' /qlnx/man/man8/chroot.8

<< Prev
Libelf

        

Next >>
Diffutils