mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-12 22:35:23 +01:00
Merge branch 'master' into coreutils2
This commit is contained in:
commit
ae680b79e5
7 changed files with 88 additions and 0 deletions
18
sysa/gawk-3.0.4/gawk-3.0.4.sh
Executable file
18
sysa/gawk-3.0.4/gawk-3.0.4.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
src_prepare() {
|
||||
default_src_prepare
|
||||
rm awktab.c
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default_src_install
|
||||
|
||||
# Install data files
|
||||
install -d "${PREFIX}/share/awk/"
|
||||
for file in awklib/eg/lib/*.awk; do
|
||||
install -m 644 "$file" "${PREFIX}/share/awk/"
|
||||
done
|
||||
}
|
||||
37
sysa/gawk-3.0.4/mk/main.mk
Normal file
37
sysa/gawk-3.0.4/mk/main.mk
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
||||
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
CC = tcc
|
||||
|
||||
CFLAGS = -I vms \
|
||||
-D__GNUC__ \
|
||||
-DRETSIGTYPE=void \
|
||||
-DSPRINTF_RET=int \
|
||||
-DHAVE_VPRINTF=1 \
|
||||
-DHAVE_STDARG_H=1 \
|
||||
-DDEFPATH=\"$(PREFIX)/share/awk\" \
|
||||
-DHAVE_ALLOCA=1 \
|
||||
-D__builtin_alloca=alloca \
|
||||
-DHAVE_SYSTEM=1 \
|
||||
-DHAVE_MEMCPY=1 \
|
||||
-DHAVE_STRERROR=1 \
|
||||
-DHAVE_STRFTIME=1 \
|
||||
-DHAVE_TZSET=1
|
||||
|
||||
.PHONY: all
|
||||
|
||||
GAWK_SRC = alloca array awktab builtin dfa eval field getopt getopt1 gawkmisc io main missing msg node random re regex version
|
||||
GAWK_OBJ = $(addsuffix .o, $(GAWK_SRC))
|
||||
|
||||
all: gawk
|
||||
|
||||
gawk: $(GAWK_OBJ)
|
||||
$(CC) -o $@ $^
|
||||
|
||||
awktab.c: awk.y
|
||||
bison $^ -o $@
|
||||
|
||||
install: all
|
||||
install gawk "$(PREFIX)/bin"
|
||||
ln -s "$(PREFIX)/bin/gawk" "$(PREFIX)/bin/awk"
|
||||
21
sysa/musl-1.1.24/patches/stdout_force_line_buffering.patch
Normal file
21
sysa/musl-1.1.24/patches/stdout_force_line_buffering.patch
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: MIT
|
||||
|
||||
Force writing to stdout to use line buffering. Works around problem
|
||||
with pipes and redirecting stdout.
|
||||
|
||||
--- src/stdio/__stdout_write.c
|
||||
+++ src/stdio/__stdout_write.c
|
||||
@@ -5,7 +5,6 @@ size_t __stdout_write(FILE *f, const unsigned char *buf, size_t len)
|
||||
{
|
||||
struct winsize wsz;
|
||||
f->write = __stdio_write;
|
||||
- if (!(f->flags & F_SVB) && __syscall(SYS_ioctl, f->fd, TIOCGWINSZ, &wsz))
|
||||
- f->lbf = -1;
|
||||
+ f->lbf = '\n';
|
||||
return __stdio_write(f, buf, len);
|
||||
}
|
||||
--
|
||||
2.30.0
|
||||
|
||||
|
|
@ -38,4 +38,7 @@ build diffutils-2.7
|
|||
# Part 27
|
||||
build coreutils-5.0
|
||||
|
||||
# Part 28
|
||||
build gawk-3.0.4
|
||||
|
||||
echo "Bootstrapping completed."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue