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
19 lines
732 B
Diff
19 lines
732 B
Diff
SPDX-FileCopyrightText: 2023 fosslinux <fosslinux@aussies.space>
|
|
|
|
SPDX-License-Identifier: PSF-2.0
|
|
|
|
Install libraries with 755 instead of 555 so we can strip them. (This
|
|
is what is in modern versions of python).
|
|
|
|
--- Python-3.1.5/Makefile.pre.in 2023-03-15 21:49:08.274186777 +1100
|
|
+++ Python-3.1.5/Makefile.pre.in 2023-03-15 21:50:02.466143662 +1100
|
|
@@ -54,8 +54,7 @@
|
|
INSTALL_DATA= @INSTALL_DATA@
|
|
# Shared libraries must be installed with executable mode on some systems;
|
|
# rather than figuring out exactly which, we always give them executable mode.
|
|
-# Also, making them read-only seems to be a good idea...
|
|
-INSTALL_SHARED= ${INSTALL} -m 555
|
|
+INSTALL_SHARED= ${INSTALL} -m 755
|
|
|
|
MAKESETUP= $(srcdir)/Modules/makesetup
|
|
|