mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +01:00
Make patches relative to where tarballs are extracted
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
This commit is contained in:
parent
749b2bfe37
commit
a67db8fcbd
156 changed files with 1265 additions and 1263 deletions
|
|
@ -5,8 +5,8 @@ SPDX-License-Identifier: GPL-2.0-or-later
|
|||
This macro does not exist in newer versions of autoconf and is unrequired.
|
||||
There is no version of autoconf supporting this project + gnulib + this macro.
|
||||
|
||||
--- m4/po_gl.m4 2021-04-11 18:39:53.353069610 +1000
|
||||
+++ m4/po_gl.m4 2021-04-11 18:40:20.422242498 +1000
|
||||
--- bison-2.3/m4/po_gl.m4 2021-04-11 18:39:53.353069610 +1000
|
||||
+++ bison-2.3/m4/po_gl.m4 2021-04-11 18:40:20.422242498 +1000
|
||||
@@ -24,7 +24,6 @@
|
||||
[
|
||||
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ SPDX-License-Identifier: GPL-2.0-or-later
|
|||
|
||||
fopen-safer.c for whatever reason does not exist when added by gnulib.
|
||||
|
||||
--- lib/Makefile.am 2021-04-11 19:01:01.265993928 +1000
|
||||
+++ lib/Makefile.am 2021-04-11 19:01:40.413232722 +1000
|
||||
--- bison-2.3/lib/Makefile.am 2021-04-11 19:01:01.265993928 +1000
|
||||
+++ bison-2.3/lib/Makefile.am 2021-04-11 19:01:40.413232722 +1000
|
||||
@@ -31,7 +31,8 @@
|
||||
lib_SOURCES = \
|
||||
get-errno.h get-errno.c \
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ SPDX-License-Identifier: GPL-2.0-or-later
|
|||
This should be declared for gnulib, but for some reason is not, most likely
|
||||
use of a different version (but CVS history no longer exists).
|
||||
|
||||
--- lib/Makefile.am 2021-04-11 13:49:09.414805465 +1000
|
||||
+++ lib/Makefile.am 2021-04-11 13:49:26.418916036 +1000
|
||||
--- bison-2.3/lib/Makefile.am 2021-04-11 13:49:09.414805465 +1000
|
||||
+++ bison-2.3/lib/Makefile.am 2021-04-11 13:49:26.418916036 +1000
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
BUILT_SOURCES =
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ SPDX-License-Identifier: GPL-2.0-or-later
|
|||
This doesn't actually make sense, you can't use the built bison to bootstrap
|
||||
itself. Make it use our bison instead.
|
||||
|
||||
--- src/Makefile.am 2021-04-10 21:37:11.570390316 +1000
|
||||
+++ src/Makefile.am 2021-04-10 21:38:01.805804332 +1000
|
||||
--- bison-2.3/src/Makefile.am 2021-04-10 21:37:11.570390316 +1000
|
||||
+++ bison-2.3/src/Makefile.am 2021-04-10 21:38:01.805804332 +1000
|
||||
@@ -23,10 +23,6 @@
|
||||
|
||||
LDADD = ../lib/libbison.a $(LIBINTL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue