mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +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
70 lines
1.7 KiB
Diff
70 lines
1.7 KiB
Diff
SPDX-FileCopyrightText: 2020 Giovanni Mascellani <gio@debian.org>
|
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
commit b1127f6821cc9c40c5a9ee406bee7564c549d9a3
|
|
Author: Giovanni Mascellani <gio@debian.org>
|
|
Date: Thu Mar 26 18:02:01 2020 +0100
|
|
|
|
Compile bison.
|
|
|
|
diff --git src/scan-code.l src/scan-code.l
|
|
index 73a3b2d..f348b20 100644
|
|
--- bison-3.4.1/src/scan-code.l
|
|
+++ bison-3.4.1/src/scan-code.l
|
|
@@ -21,6 +21,7 @@
|
|
%option prefix="code_" outfile="lex.yy.c"
|
|
|
|
%{
|
|
+#include "config.h"
|
|
#include <c-ctype.h>
|
|
#include <get-errno.h>
|
|
#include <quote.h>
|
|
@@ -31,6 +32,7 @@
|
|
#include <src/reader.h>
|
|
#include <src/scan-code.h>
|
|
#include <src/symlist.h>
|
|
+#include "system.h"
|
|
|
|
#define FLEX_PREFIX(Id) code_ ## Id
|
|
#include <src/flex-scanner.h>
|
|
diff --git src/scan-gram.l src/scan-gram.l
|
|
index 66a8caa..efa391a 100644
|
|
--- bison-3.4.1/src/scan-gram.l
|
|
+++ bison-3.4.1/src/scan-gram.l
|
|
@@ -21,6 +21,7 @@
|
|
%option prefix="gram_" outfile="lex.yy.c"
|
|
|
|
%{
|
|
+#include "config.h"
|
|
#include <c-ctype.h>
|
|
#include <mbswidth.h>
|
|
#include <quote.h>
|
|
@@ -33,6 +34,7 @@
|
|
#include <src/reader.h>
|
|
#include <src/scan-gram.h>
|
|
#include <src/uniqstr.h>
|
|
+#include "system.h"
|
|
|
|
#define FLEX_PREFIX(Id) gram_ ## Id
|
|
#include <src/flex-scanner.h>
|
|
diff --git src/scan-skel.l src/scan-skel.l
|
|
index 487e9f5..19f4832 100644
|
|
--- bison-3.4.1/src/scan-skel.l
|
|
+++ bison-3.4.1/src/scan-skel.l
|
|
@@ -21,6 +21,7 @@
|
|
%option prefix="skel_" outfile="lex.yy.c"
|
|
|
|
%{
|
|
+#include "config.h"
|
|
#include <dirname.h>
|
|
#include <error.h>
|
|
#include <path-join.h>
|
|
@@ -30,6 +31,7 @@
|
|
#include <src/files.h>
|
|
#include <src/getargs.h>
|
|
#include <src/scan-skel.h>
|
|
+#include "system.h"
|
|
|
|
#define FLEX_PREFIX(Id) skel_ ## Id
|
|
#include <src/flex-scanner.h>
|