Merge pull request #34 from pder/coreutils2

Rebuild coreutils-5.0 with tcc+musl and more utilities
This commit is contained in:
fosslinux 2021-02-12 21:47:50 +11:00 committed by GitHub
commit 9bd3ba745c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 161 additions and 2 deletions

View File

@ -326,7 +326,12 @@ be useful later for autotools.
`diffutils` is useful for comparing two files. It is not immediately needed but
is required later for autotools.
#### Part 27: gawk 3.0.4
#### Part 27: coreutils 5.0
`coreutils` is rebuilt against musl. Additional utilities are built including
`comm`, `expr`, `date`, `dd`, `sort`, `uname`, and `uniq`.
#### Part 28: gawk 3.0.4
`gawk` is the GNU implementation of `awk`, yet another pattern matching and data
extraction utility. It is also required for autotools.
extraction utility. It is also required for autotools.

View File

@ -0,0 +1,25 @@
# SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_unpack() {
src_dir="${base_dir}/src"
tar -xf "${src_dir}/${pkg}.tar"
}
src_prepare() {
cp lib/fnmatch_.h lib/fnmatch.h
cp lib/ftw_.h lib/ftw.h
cp lib/search_.h lib/search.h
touch config.h
cp "${mk_dir}/pass2.mk" Makefile
}
src_compile() {
make -f Makefile
}
src_install() {
make -f Makefile install PREFIX="${PREFIX}"
}

File diff suppressed because one or more lines are too long

View File

@ -36,6 +36,9 @@ build grep-2.4
build diffutils-2.7
# Part 27
build coreutils-5.0
# Part 28
build gawk-3.0.4
echo "Bootstrapping completed."