Replace coreutils-6.3 with coreutils-6.10

Build only date, mktemp, and sha256sum
This commit is contained in:
Paul Dersey 2021-03-23 15:14:45 -04:00
parent 19c113127b
commit 366dc2eac5
8 changed files with 26 additions and 19 deletions

View file

@ -0,0 +1,3 @@
98124acfaf5cd8c1795d9557455607fb157a514867de5b908a9a3c8d00d88717 /after/bin/date
fe8a8a6d39e35ca2d980ac0dfb57204f34c34aa2ec543bc15f93ff80bcbbd38a /after/bin/mktemp
40289b9aae91f72a7d44bbc93616dcf2397b60d2532b549d053f3ce9b1040119 /after/bin/sha256sum

View file

@ -4,10 +4,7 @@
src_prepare() {
default_src_prepare
cp lib/fnmatch_.h lib/fnmatch.h
cp lib/fcntl_.h lib/fcntl.h
sed -i 's#@ABSOLUTE_FCNTL_H@#"/after/include/musl/fcntl.h"#' lib/fcntl.h
mv lib/fnmatch.in.h lib/fnmatch.h
# Rebuild bison pre-generated file
rm lib/getdate.c

View file

@ -6,8 +6,8 @@
PACKAGE=coreutils
PACKAGE_NAME=GNU\ coreutils
PACKAGE_BUGREPORT=bug-coreutils@gnu.org
PACKAGE_VERSION=6.3
VERSION=6.3
PACKAGE_VERSION=6.10
VERSION=6.10
CC = tcc
LD = tcc
@ -75,7 +75,11 @@ CFLAGS = -I . -I lib \
-Dminor_t=unsigned \
-DHAVE_GETTIMEOFDAY=1 \
-DHAVE_TIME_R_POSIX=1 \
-DHASH_ALGO_SHA256
-DHASH_ALGO_SHA256 \
-DFLEXIBLE_ARRAY_MEMBER \
-DS_IRWXUGO='(S_IRWXU | S_IRWXG | S_IRWXO)' \
-DGNULIB_CANONICALIZE \
-DO_BINARY=0
.PHONY: all install
@ -85,11 +89,11 @@ COREUTILS = date
BINARIES = $(addprefix $(SRC_DIR)/, $(COREUTILS))
ALL=$(BINARIES) $(SRC_DIR)/sha256sum
all: $(BINARIES) $(SRC_DIR)/sha256sum
ALL=$(BINARIES) $(SRC_DIR)/sha256sum $(SRC_DIR)/mktemp
all: $(BINARIES) $(SRC_DIR)/sha256sum $(SRC_DIR)/mktemp
LIB_DIR = lib
LIB_SRC = acl alloca getdate fprintftime posixtm posixver strftime getopt hash hash-pjw argmatch backupfile basename canon-host closeout cycle-check diacrit dirname dup-safer error exclude exitfail filemode __fpending file-type fnmatch fopen-safer full-read full-write getline gettime hard-locale human idcache imaxtostr linebuffer localcharset long-options mbswidth md5 memcasecmp memcoll modechange offtostr physmem quote quotearg readtokens rpmatch safe-read safe-write same save-cwd savedir settime sha256 stpcpy stripslash umaxtostr unicodeio userspec version-etc version-etc-fsf xgetcwd xgethostname xmalloc xmemcoll xnanosleep xreadlink xstrtod xstrtol xstrtoul xstrtoimax xstrtoumax yesno strnlen getcwd sig2str mountlist canonicalize mkstemp memrchr euidaccess obstack strverscmp strftime xalloc-die close-stream
LIB_SRC = acl alloca getdate fprintftime posixtm posixver strftime getopt hash hash-pjw argmatch backupfile basename canon-host closeout cycle-check diacrit dirname dup-safer error exclude exitfail filemode fpending file-type fnmatch fopen-safer full-read full-write getline gettime hard-locale human idcache imaxtostr linebuffer localcharset long-options mbswidth md5 memcasecmp memcoll modechange offtostr physmem quote quotearg readtokens rpmatch safe-read safe-write same save-cwd savedir settime sha256 stpcpy stripslash umaxtostr unicodeio userspec version-etc version-etc-fsf xgetcwd xgethostname xmalloc xmemcoll xnanosleep readlink xstrtod xstrtol xstrtoul xstrtoimax xstrtoumax yesno strnlen getcwd sig2str mountlist canonicalize mkstemp memrchr euidaccess obstack strverscmp strftime xalloc-die close-stream tempname filenamecat xstrndup randint randread rand-isaac gethrxtime
LIB_OBJECTS = $(addprefix $(LIB_DIR)/, $(addsuffix .o, $(LIB_SRC)))
@ -102,5 +106,8 @@ $(BINARIES) : % : %.o $(LIB_DIR)/libfettish.a
$(SRC_DIR)/sha256sum: $(SRC_DIR)/md5sum.o $(LIB_DIR)/libfettish.a
$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@
$(SRC_DIR)/mktemp: $(SRC_DIR)/mktemp.o $(LIB_DIR)/libfettish.a
$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@
install: $(ALL)
install $^ $(bindir)

View file

@ -1 +0,0 @@
34ec35d9de41dd954802dbcfc7c07697f1e7e3cecedbe32ea16a6da85c3eb260 /after/bin/sha256sum

View file

@ -57,8 +57,8 @@ build diffutils-2.7
# Rebuild coreutils using musl
build coreutils-5.0 coreutils-5.0.sh checksums/pass2
# Build only sha256sum
build coreutils-6.3
# Build only date, mktemp and sha256sum
build coreutils-6.10
build gawk-3.0.4