mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-04 10:25:25 +01:00
Add tac to coreutils-5.0.
This commit is contained in:
parent
483bf555aa
commit
a0cb0dfd60
6 changed files with 35 additions and 4 deletions
|
|
@ -33,7 +33,7 @@ becc8ea1f24c531c35b520ce8bac9e8bf6e30e362fe77bf7833aed9d28af0ae6 bison-3.4.1_2.
|
|||
a3266333620a13f4a4c8f4f9819dc6f1fcded7f74bcb9fbf46518f3b160cf930 bison-3.4.2_0.tar.bz2
|
||||
09bef4ec506ccafc42ad925f9c038af9885cd8ebca294cf042e63a7d39e91bb5 bzip2-1.0.8_0.tar.bz2
|
||||
c484b98e580d7ef5619dc2da2318d9f1e69360a882f64aa15e0fdde0184c45fb ca-certificates-3.78_0.tar.bz2
|
||||
2d85ff411c62c2ee9db08e20d33991ef6d28a6067e211e9641a8eaefed6aee04 coreutils-5.0_0.tar.bz2
|
||||
c4d59e759f7349b96f74e62d867e419f3d85fbb81eaf5f79f996abf48f0d3170 coreutils-5.0_0.tar.bz2
|
||||
776ef3e13870fba6fc9cec64eaf40fb658abecc99c65724968013f8f8a177802 coreutils-6.10_0.tar.bz2
|
||||
b8992f675350658b106c3066cac0ee31440020bc9d6128bfc2fdf1fde60efd74 coreutils-8.32_0.tar.bz2
|
||||
28a1e93ed14f7fa4d3c8ca41e9b78e29ba685fbc8b6bf7ba3b6933770d68eedb curl-7.83.0_0.tar.bz2
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ c4dfcec63607cf44a4f64a2673892a38c6b5a7aa9821d12c9abe9cf63126ee39 /usr/bin/tr
|
|||
6bd0cd1171675044c288434a553e86dd686ce781e0a3d8ce9dc360fd794e5bfa /usr/bin/unlink
|
||||
0c7288eb7dfc707723ef9653be06f49b3b458e22b53f8172733870f612fb0135 /usr/bin/wc
|
||||
a92eb5a6e8413bf580718c0fddaac7821a68a8e7918a930c4cb36a2c666d3720 /usr/bin/whoami
|
||||
3c74373f922d515df3ee632c1919c244f201e598de517c20aeeb3a9194af4528 /usr/bin/tac
|
||||
90efe5bf9f90320a8ed311ffa723632c018ce29c090d0f54b88dcda08767390a /usr/bin/test
|
||||
042efa219eb798c0308259566fe12b161c8349b9d50fe9e02bb74993a07bf91a /usr/bin/touch
|
||||
19dc29f6b439546fc113286d09bf5ba6c83663e03037225a6884f66790f5820f /usr/bin/true
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ patch -Np0 -i ../../patches/mbstate.patch
|
|||
patch -Np0 -i ../../patches/ls-strcmp.patch
|
||||
patch -Np0 -i ../../patches/touch-getdate.patch
|
||||
patch -Np0 -i ../../patches/touch-dereference.patch
|
||||
patch -Np0 -i ../../patches/tac-uint64.patch
|
||||
|
||||
# Build and install
|
||||
make -f Makefile PREFIX=${prefix}
|
||||
|
|
@ -89,6 +90,7 @@ if match x${UPDATE_CHECKSUMS} xTrue; then
|
|||
/usr/bin/unlink \
|
||||
/usr/bin/wc \
|
||||
/usr/bin/whoami \
|
||||
/usr/bin/tac \
|
||||
/usr/bin/test \
|
||||
/usr/bin/touch \
|
||||
/usr/bin/true \
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ CFLAGS = -I . -I lib \
|
|||
-DLC_COLLATE=\"C\" \
|
||||
-DHAVE_GETCWD=1 \
|
||||
-Dmy_strftime=nstrftime \
|
||||
-Dmkstemp=rpl_mkstemp \
|
||||
-DDIR_TO_FD\(Dir_p\)=-1 \
|
||||
-DUTILS_OPEN_MAX=1000 \
|
||||
-Dmajor_t=unsigned \
|
||||
|
|
@ -74,7 +75,7 @@ CFLAGS = -I . -I lib \
|
|||
|
||||
SRC_DIR=src
|
||||
|
||||
COREUTILS = basename cat chmod cksum csplit cut echo expand false fmt fold head id join kill link ln logname mkfifo mkdir mknod nl od paste pathchk printf ptx pwd readlink rmdir seq sleep split sum tail tee tr tsort unexpand unlink wc whoami test touch true yes
|
||||
COREUTILS = basename cat chmod cksum csplit cut echo expand false fmt fold head id join kill link ln logname mkfifo mkdir mknod nl od paste pathchk printf ptx pwd readlink rmdir seq sleep split sum tail tee tr tsort unexpand unlink wc whoami tac test touch true yes
|
||||
|
||||
BINARIES = $(addprefix $(SRC_DIR)/, $(COREUTILS))
|
||||
|
||||
|
|
@ -82,7 +83,7 @@ ALL=$(BINARIES) $(SRC_DIR)/cp $(SRC_DIR)/ls $(SRC_DIR)/install $(SRC_DIR)/md5sum
|
|||
all: $(BINARIES) $(SRC_DIR)/cp $(SRC_DIR)/ls $(SRC_DIR)/install $(SRC_DIR)/md5sum $(SRC_DIR)/mv $(SRC_DIR)/rm $(SRC_DIR)/sha1sum
|
||||
|
||||
LIB_DIR = lib
|
||||
LIB_SRC = acl posixtm posixver strftime getopt getopt1 hash hash-pjw addext 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 getstr gettime hard-locale human idcache isdir imaxtostr linebuffer localcharset long-options makepath mbswidth md5 memcasecmp memcoll modechange offtostr path-concat physmem quote quotearg readtokens rpmatch safe-read safe-write same save-cwd savedir settime sha stpcpy stripslash strtoimax strtoumax umaxtostr unicodeio userspec version-etc xgetcwd xgethostname xmalloc xmemcoll xnanosleep xreadlink xstrdup xstrtod xstrtol xstrtoul xstrtoimax xstrtoumax yesno strnlen getcwd sig2str mountlist regex canonicalize mkstemp memrchr euidaccess ftw dirfd obstack strverscmp strftime tsearch
|
||||
LIB_SRC = acl posixtm posixver strftime getopt getopt1 hash hash-pjw addext 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 getstr gettime hard-locale human idcache isdir imaxtostr linebuffer localcharset long-options makepath mbswidth md5 memcasecmp memcoll modechange offtostr path-concat physmem quote quotearg readtokens rpmatch safe-read safe-write same save-cwd savedir settime sha stpcpy stripslash strtoimax strtoumax umaxtostr unicodeio userspec version-etc xgetcwd xgethostname xmalloc xmemcoll xnanosleep xreadlink xstrdup xstrtod xstrtol xstrtoul xstrtoimax xstrtoumax yesno strnlen getcwd sig2str mountlist regex canonicalize mkstemp memrchr euidaccess ftw dirfd obstack strverscmp strftime tempname tsearch
|
||||
|
||||
LIB_OBJECTS = $(addprefix $(LIB_DIR)/, $(addsuffix .o, $(LIB_SRC)))
|
||||
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ CFLAGS = -I . -I lib \
|
|||
|
||||
SRC_DIR=src
|
||||
|
||||
COREUTILS = basename cat chmod chroot cksum comm csplit cut dd dirname echo env expand expr false fmt fold head id join kill link ln logname mkfifo mkdir mknod nl od paste pathchk printf ptx pwd readlink rmdir seq sleep sort split sum sync tail tee touch tr tsort uname unexpand uniq unlink wc whoami test true yes
|
||||
COREUTILS = basename cat chmod chroot cksum comm csplit cut dd dirname echo env expand expr false fmt fold head id join kill link ln logname mkfifo mkdir mknod nl od paste pathchk printf ptx pwd readlink rmdir seq sleep sort split sum sync tail tee touch tr tsort uname unexpand uniq unlink wc whoami tac test true yes
|
||||
|
||||
BINARIES = $(addprefix $(SRC_DIR)/, $(COREUTILS))
|
||||
|
||||
|
|
|
|||
27
sysa/coreutils-5.0/patches/tac-uint64.patch
Normal file
27
sysa/coreutils-5.0/patches/tac-uint64.patch
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
uint64_t is not supported in tcc 0.9.27
|
||||
--- lib/tempname.c 2002-12-01 10:40:32.000000000 +0000
|
||||
+++ lib/tempname.c 2022-06-22 20:57:37.449423973 +0100
|
||||
@@ -231,8 +231,8 @@
|
||||
{
|
||||
int len;
|
||||
char *XXXXXX;
|
||||
- static uint64_t value;
|
||||
- uint64_t random_time_bits;
|
||||
+ static unsigned long long value;
|
||||
+ unsigned long long random_time_bits;
|
||||
unsigned int count;
|
||||
int fd = -1;
|
||||
int save_errno = errno;
|
||||
@@ -278,7 +278,7 @@
|
||||
|
||||
for (count = 0; count < attempts; value += 7777, ++count)
|
||||
{
|
||||
- uint64_t v = value;
|
||||
+ unsigned long long v = value;
|
||||
|
||||
/* Fill in the random bits. */
|
||||
XXXXXX[0] = letters[v % 62];
|
||||
Loading…
Add table
Add a link
Reference in a new issue