Buil sed 4.0.9 with musl.

This commit is contained in:
Andrius Štikonas 2021-03-11 18:12:52 +00:00
parent 07dcb910b9
commit 3518f7cec0
7 changed files with 60 additions and 0 deletions

View file

@ -36,6 +36,9 @@ build musl-1.1.24 musl-1.1.24.sh checksums/pass2
# Rebuild tcc-musl using new musl
build tcc-0.9.27 tcc-musl-pass2.sh checksums/tcc-musl-pass2
# Rebuild sed using musl
build sed-4.0.9
# Rebuild bzip2 using musl
build bzip2-1.0.8 bzip2-1.0.8.sh checksums/bzip2-pass2

1
sysa/sed-4.0.9/checksums Normal file
View file

@ -0,0 +1 @@
de7d06a5c0b0a4b52307771f60dd711d0ae9ae0b14562ad6d26942785aaf0909 /after/bin/sed

33
sysa/sed-4.0.9/mk/main.mk Normal file
View file

@ -0,0 +1,33 @@
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
CC = tcc
AR = tcc -ar
CPPFLAGS = -DENABLE_NLS=0 \
-DHAVE_FCNTL_H \
-DHAVE_ALLOCA_H \
-DSED_FEATURE_VERSION=\"4.0\" \
-DVERSION=\"4.0.9\" \
-DPACKAGE=\"sed\"
CFLAGS = -I . -I lib
.PHONY: all
LIB_SRC = alloca getopt1 getopt utils regex obstack strverscmp mkstemp
LIB_OBJ = $(addprefix lib/, $(addsuffix .o, $(LIB_SRC)))
SED_SRC = compile execute regexp fmt sed
SED_OBJ = $(addprefix sed/, $(addsuffix .o, $(SED_SRC)))
all: sed/sed
libsed.a: $(LIB_OBJ)
$(AR) cr $@ $^
sed/sed: $(SED_OBJ) libsed.a
$(CC) -o $@ $^
install:
install sed/sed $(PREFIX)/bin

14
sysa/sed-4.0.9/sed-4.0.9.sh Executable file
View file

@ -0,0 +1,14 @@
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default_src_prepare
cp lib/regex_.h lib/regex.h
touch config.h
}
src_install() {
default_src_install
}