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
36 lines
1.4 KiB
Diff
36 lines
1.4 KiB
Diff
SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
Remove dependency on gperf.
|
|
|
|
--- gcc-4.7.4/gcc/cp/except.c 2021-07-07 18:24:36.561530121 +0100
|
|
+++ gcc-4.7.4/gcc/cp/except.c 2021-07-07 18:27:18.035681929 +0100
|
|
@@ -987,8 +987,6 @@
|
|
exception, unless it calls a program-supplied function that
|
|
throws an exception. */
|
|
|
|
-#include "cfns.h"
|
|
-
|
|
int
|
|
nothrow_libfn_p (const_tree fn)
|
|
{
|
|
@@ -1007,7 +1005,7 @@
|
|
unless the system headers are playing rename tricks, and if
|
|
they are, we don't want to be confused by them. */
|
|
id = DECL_NAME (fn);
|
|
- return !!libc_name_p (IDENTIFIER_POINTER (id), IDENTIFIER_LENGTH (id));
|
|
+ return 0;
|
|
}
|
|
|
|
/* Returns nonzero if an exception of type FROM will be caught by a
|
|
--- gcc-4.7.4/gcc/cp/Make-lang.in 2021-07-07 18:24:36.571530380 +0100
|
|
+++ gcc-4.7.4/gcc/cp/Make-lang.in 2021-07-07 18:26:47.154887799 +0100
|
|
@@ -313,7 +313,7 @@
|
|
cp/rtti.o: cp/rtti.c $(CXX_TREE_H) $(TM_H) $(FLAGS_H) convert.h \
|
|
$(TARGET_H) $(C_PRAGMA_H) gt-cp-rtti.h intl.h
|
|
cp/except.o: cp/except.c $(CXX_TREE_H) $(TM_H) $(FLAGS_H) \
|
|
- cp/cfns.h $(TREE_INLINE_H) $(TARGET_H) gt-cp-except.h
|
|
+ $(TREE_INLINE_H) $(TARGET_H) gt-cp-except.h
|
|
cp/expr.o: cp/expr.c $(CXX_TREE_H) $(TM_H) $(FLAGS_H) $(TM_P_H)
|
|
cp/pt.o: cp/pt.c $(CXX_TREE_H) $(TM_H) cp/decl.h cp/cp-objcp-common.h \
|
|
toplev.h $(TREE_INLINE_H) pointer-set.h gt-cp-pt.h vecprim.h intl.h \
|