mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-04 10:25:25 +01:00
Ever since an old patch version, it has (for reasonable security reasons) not supported patched with ../ in the filename. Many of our patches have been relying on this behaviour being OK, because we start off with an ancient patch version that didn't perform such checks. As soon as we need this behaviour after we build a newer patch though, we will have problems. So, let's change the policy. Patches are relative to where tarballs are extracted, rather than the "working directory" - e.g. have patches for `coreutils-9.4/src/cp.c` instead of `src/cp.c`. Keeping this consistent has a few implications; - patches are applied from the build/ directory in bash era now, with `-p0` - when patches are manually applied in the bash era, use `-p` as required, usually `-p1` - in kaem era where patches are always manually applied, `-p1` is used
121 lines
4.2 KiB
Diff
121 lines
4.2 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
|
|
--- util-linux-2.19.1/shlibs/blkid/src/devname.c 2021-06-12 14:24:30.982387640 +1000
|
|
+++ util-linux-2.19.1/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
|
|
--- util-linux-2.19.1/shlibs/blkid/src/devno.c 2021-06-12 14:24:30.987387677 +1000
|
|
+++ util-linux-2.19.1/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
|
|
--- util-linux-2.19.1/shlibs/blkid/src/partitions/partitions.c 2021-06-12 14:24:30.983387647 +1000
|
|
+++ util-linux-2.19.1/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
|
|
--- util-linux-2.19.1/shlibs/blkid/src/topology/evms.c 2021-06-12 14:24:30.984387655 +1000
|
|
+++ util-linux-2.19.1/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
|
|
--- util-linux-2.19.1/shlibs/blkid/src/topology/lvm.c 2021-06-12 14:24:30.984387655 +1000
|
|
+++ util-linux-2.19.1/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
|
|
--- util-linux-2.19.1/shlibs/blkid/src/topology/md.c 2021-06-12 14:24:30.984387655 +1000
|
|
+++ util-linux-2.19.1/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"
|
|
|
|
--- util-linux-2.19.1/shlibs/blkid/src/topology/dm.c 2021-06-12 14:29:01.195392922 +1000
|
|
+++ util-linux-2.19.1/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
|
|
--- util-linux-2.19.1/shlibs/blkid/src/evaluate.c 2021-06-12 16:11:45.893958255 +1000
|
|
+++ util-linux-2.19.1/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
|
|
--- util-linux-2.19.1/shlibs/mount/src/fs.c 2021-06-12 16:11:45.897958283 +1000
|
|
+++ util-linux-2.19.1/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"
|
|
--- util-linux-2.19.1/shlibs/mount/src/tab_parse.c 2021-06-12 19:04:38.773393353 +1000
|
|
+++ util-linux-2.19.1/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"
|