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
41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
SPDX-FileCopyrightText: 2022 Dor Askayo <dor.askayo@gmail.com>
|
|
SPDX-FileCopyrightText: 2015 Szabolcs Nagy <szabolcs.nagy@arm.com>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
Backported from upstream commit 85da5c3024f731e719c4093314da8edcd1056527
|
|
|
|
libstdc++ gthr workaround for musl
|
|
|
|
[libstdc++-v3/]
|
|
2015-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
|
|
|
|
* config/os/generic/os_defines.h (_GLIBCXX_GTHREAD_USE_WEAK): Define.
|
|
* configure.host (os_include_dir): Set to "os/generic" for linux-musl*.
|
|
|
|
From-SVN: r222329
|
|
|
|
--- gcc-4.7.4/libstdc++-v3/config/os/generic/os_defines.h
|
|
+++ gcc-4.7.4/libstdc++-v3/config/os/generic/os_defines.h
|
|
@@ -33,4 +33,9 @@
|
|
// System-specific #define, typedefs, corrections, etc, go here. This
|
|
// file will come before all others.
|
|
|
|
+// Disable the weak reference logic in gthr.h for os/generic because it
|
|
+// is broken on every platform unless there is implementation specific
|
|
+// workaround in gthr-posix.h and at link-time for static linking.
|
|
+#define _GLIBCXX_GTHREAD_USE_WEAK 0
|
|
+
|
|
#endif
|
|
--- gcc-4.7.4/libstdc++-v3/configure.host
|
|
+++ gcc-4.7.4/libstdc++-v3/configure.host
|
|
@@ -242,6 +242,9 @@ case "${host_os}" in
|
|
freebsd*)
|
|
os_include_dir="os/bsd/freebsd"
|
|
;;
|
|
+ linux-musl*)
|
|
+ os_include_dir="os/generic"
|
|
+ ;;
|
|
gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
|
|
if [ "$uclibc" = "yes" ]; then
|
|
os_include_dir="os/uclibc"
|