Remove the notion of "sys*"

- This idea originates from very early in the project and was, at the
  time, a very easy way to categorise things.
- Now, it doesn't really make much sense - it is fairly arbitary, often
  occuring when there is a change in kernel, but not from builder-hex0
  to fiwix, and sysb is in reality completely unnecessary.
- In short, the sys* stuff is a bit of a mess that makes the project
  more difficult to understand.
- This puts everything down into one folder and has a manifest file that
  is used to generate the build scripts on the fly rather than using
  coded scripts.
- This is created in the "seed" stage.

stage0-posix -- (calls) --> seed -- (generates) --> main steps

Alongside this change there are a variety of other smaller fixups to the
general structure of the live-bootstrap rootfs.

- Creating a rootfs has become much simpler and is defined as code in
  go.sh. The new structure, for an about-to-be booted system, is

/
-- /steps (direct copy of steps/)
-- /distfiles (direct copy of distfiles/)
-- all files from seed/*
-- all files from seed/stage0-posix/*

- There is no longer such a thing as /usr/include/musl, this didn't
  really make any sense, as musl is the final libc used. Rather, to
  separate musl and mes, we have /usr/include/mes, which is much easier
  to work with.
- This also makes mes easier to blow away later.
- A few things that weren't properly in packages have been changed;
  checksum-transcriber, simple-patch, kexec-fiwix have all been given
  fully qualified package names.
- Highly breaking change, scripts now exist in their package directory
  but NOT WITH THE packagename.sh. Rather, they use pass1.sh, pass2.sh,
  etc. This avoids manual definition of passes.
  - Ditto with patches; default directory is patches, but then any patch
    series specific to a pass are named patches-passX.
This commit is contained in:
fosslinux 2023-11-07 10:51:23 +11:00
parent 0907cfd073
commit 6ed2e09f3a
546 changed files with 700 additions and 1299 deletions

View file

@ -0,0 +1,54 @@
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
# SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
# SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
# SPDX-License-Identifier: GPL-3.0-or-later
CC = tcc
CFLAGS = -I vms \
-DC_ALLOCA=1 \
-DGETGROUPS_T=gid_t \
-DGETPGRP_VOID=1 \
-DHAVE_MMAP=1 \
-DSTDC_HEADERS=1 \
-DREGEX_MALLOC=1 \
-DRETSIGTYPE=void \
-DSPRINTF_RET=int \
-DHAVE_VPRINTF=1 \
-DHAVE_STDARG_H=1 \
-DDEFPATH=\"$(PREFIX)/share/awk\" \
-DHAVE_SYSTEM=1 \
-DHAVE_TZSET=1 \
-DHAVE_LIMITS_H=1 \
-DHAVE_LOCALE_H=1 \
-DHAVE_MEMORY_H=1 \
-DHAVE_STDARG_H=1 \
-DHAVE_MEMCMP=1 \
-DHAVE_MEMCPY=1 \
-DHAVE_MEMSET=1 \
-DHAVE_STRERROR=1 \
-DHAVE_STRNCASECMP=1 \
-DHAVE_STRFTIME=1 \
-DHAVE_STRING_H=1 \
-DHAVE_STRTOD=1 \
-DHAVE_SYS_PARAM_H=1 \
-DHAVE_UNISTD_H=1 \
-DBITOPS=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 -D gawk $(DESTDIR)$(PREFIX)/bin/gawk
ln -s $(PREFIX)/bin/gawk $(DESTDIR)$(PREFIX)/bin/awk

18
steps/gawk-3.0.4/pass1.sh Executable file
View file

@ -0,0 +1,18 @@
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default
rm awktab.c
}
src_install() {
default
# Install data files
install -d "${DESTDIR}${PREFIX}/share/awk/"
for file in awklib/eg/lib/*.awk; do
install -m 644 "$file" "${DESTDIR}${PREFIX}/share/awk/"
done
}

1
steps/gawk-3.0.4/sources Normal file
View file

@ -0,0 +1 @@
https://mirrors.kernel.org/gnu/gawk/gawk-3.0.4.tar.gz 5cc35def1ff4375a8b9a98c2ff79e95e80987d24f0d42fdbb7b7039b3ddb3fb0