mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-04 18:35:24 +01:00
- 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.
121 lines
3.8 KiB
Diff
121 lines
3.8 KiB
Diff
SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
|
|
|
|
SPDX-License-Identifier: LGPL-2.0-or-later
|
|
|
|
Musl utilizes the (correct) sys/sysmacros.h for major/minor macros. However,
|
|
older glibc used to not do this. Hence this older util-linux assumes that
|
|
behaviour which is wrong. So we need to patch in this include.
|
|
|
|
Some function was moved to sys/param.h at a later date so we include that for
|
|
ttymsg.
|
|
|
|
(This is the main patch file. See -bsd.patch for files with such licensing).
|
|
|
|
diff --color -ru shlibs/blkid/src/devname.c shlibs/blkid/src/devname.c
|
|
--- shlibs/blkid/src/devname.c 2021-06-12 14:24:30.982387640 +1000
|
|
+++ shlibs/blkid/src/devname.c 2021-06-12 14:25:42.934921608 +1000
|
|
@@ -33,6 +33,7 @@
|
|
#include <errno.h>
|
|
#endif
|
|
#include <time.h>
|
|
+#include <sys/sysmacros.h>
|
|
|
|
#include "blkidP.h"
|
|
|
|
diff --color -ru shlibs/blkid/src/devno.c shlibs/blkid/src/devno.c
|
|
--- shlibs/blkid/src/devno.c 2021-06-12 14:24:30.987387677 +1000
|
|
+++ shlibs/blkid/src/devno.c 2021-06-12 14:25:27.750808925 +1000
|
|
@@ -31,6 +31,7 @@
|
|
#endif
|
|
#include <fcntl.h>
|
|
#include <inttypes.h>
|
|
+#include <sys/sysmacros.h>
|
|
|
|
#include "blkidP.h"
|
|
#include "pathnames.h"
|
|
diff --color -ru shlibs/blkid/src/partitions/partitions.c shlibs/blkid/src/partitions/partitions.c
|
|
--- shlibs/blkid/src/partitions/partitions.c 2021-06-12 14:24:30.983387647 +1000
|
|
+++ shlibs/blkid/src/partitions/partitions.c 2021-06-12 14:25:24.326783515 +1000
|
|
@@ -19,6 +19,7 @@
|
|
#include <stdint.h>
|
|
#include <inttypes.h>
|
|
#include <stdarg.h>
|
|
+#include <sys/sysmacros.h>
|
|
|
|
#include "partitions.h"
|
|
|
|
diff --color -ru shlibs/blkid/src/topology/evms.c shlibs/blkid/src/topology/evms.c
|
|
--- shlibs/blkid/src/topology/evms.c 2021-06-12 14:24:30.984387655 +1000
|
|
+++ shlibs/blkid/src/topology/evms.c 2021-06-12 14:25:30.390828517 +1000
|
|
@@ -19,6 +19,7 @@
|
|
#include <sys/stat.h>
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
+#include <sys/sysmacros.h>
|
|
|
|
#include "topology.h"
|
|
|
|
diff --color -ru shlibs/blkid/src/topology/lvm.c shlibs/blkid/src/topology/lvm.c
|
|
--- shlibs/blkid/src/topology/lvm.c 2021-06-12 14:24:30.984387655 +1000
|
|
+++ shlibs/blkid/src/topology/lvm.c 2021-06-12 14:25:37.510881355 +1000
|
|
@@ -18,6 +18,7 @@
|
|
#include <sys/stat.h>
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
+#include <sys/sysmacros.h>
|
|
|
|
#include "topology.h"
|
|
|
|
diff --color -ru shlibs/blkid/src/topology/md.c shlibs/blkid/src/topology/md.c
|
|
--- shlibs/blkid/src/topology/md.c 2021-06-12 14:24:30.984387655 +1000
|
|
+++ shlibs/blkid/src/topology/md.c 2021-06-12 14:25:34.679860346 +1000
|
|
@@ -19,6 +19,7 @@
|
|
#include <sys/stat.h>
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
+#include <sys/sysmacros.h>
|
|
|
|
#include "topology.h"
|
|
|
|
--- shlibs/blkid/src/topology/dm.c 2021-06-12 14:29:01.195392922 +1000
|
|
+++ shlibs/blkid/src/topology/dm.c 2021-06-12 14:29:05.897427816 +1000
|
|
@@ -18,6 +18,7 @@
|
|
#include <sys/stat.h>
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
+#include <sys/sysmacros.h>
|
|
|
|
#include "topology.h"
|
|
|
|
diff --color -ru shlibs/blkid/src/evaluate.c shlibs/blkid/src/evaluate.c
|
|
--- shlibs/blkid/src/evaluate.c 2021-06-12 16:11:45.893958255 +1000
|
|
+++ shlibs/blkid/src/evaluate.c 2021-06-12 16:12:20.652202397 +1000
|
|
@@ -21,6 +21,7 @@
|
|
#endif
|
|
#include <stdint.h>
|
|
#include <stdarg.h>
|
|
+#include <sys/sysmacros.h>
|
|
|
|
#include "pathnames.h"
|
|
#include "canonicalize.h"
|
|
diff --color -ru shlibs/mount/src/fs.c shlibs/mount/src/fs.c
|
|
--- shlibs/mount/src/fs.c 2021-06-12 16:11:45.897958283 +1000
|
|
+++ shlibs/mount/src/fs.c 2021-06-12 16:12:14.812161377 +1000
|
|
@@ -18,6 +18,7 @@
|
|
#include <errno.h>
|
|
#include <blkid.h>
|
|
#include <stddef.h>
|
|
+#include <sys/sysmacros.h>
|
|
|
|
#include "nls.h"
|
|
#include "mountP.h"
|
|
--- shlibs/mount/src/tab_parse.c 2021-06-12 19:04:38.773393353 +1000
|
|
+++ shlibs/mount/src/tab_parse.c 2021-06-12 19:04:51.115474555 +1000
|
|
@@ -14,6 +14,7 @@
|
|
#include <dirent.h>
|
|
#include <fcntl.h>
|
|
#include <unistd.h>
|
|
+#include <sys/sysmacros.h>
|
|
|
|
#include "nls.h"
|
|
#include "at.h"
|