mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-04 18:35:24 +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
20 lines
751 B
Diff
20 lines
751 B
Diff
SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
|
|
|
|
SPDX-License-Identifier: PSF-2.0
|
|
|
|
Again, Python 2.5 added the key= argument for sorting functions,
|
|
which is not available when we are building Python 2.5.
|
|
|
|
Sorting is absolutely unnessecary when generating defines for a
|
|
header file so we can just remove it.
|
|
|
|
--- Python-2.5.6/Lib/sre_constants.py 2004-08-25 12:22:30.000000000 +1000
|
|
+++ Python-2.5.6/Lib/sre_constants.py 2022-10-09 20:18:40.332233858 +1100
|
|
@@ -219,7 +219,6 @@
|
|
if __name__ == "__main__":
|
|
def dump(f, d, prefix):
|
|
items = d.items()
|
|
- items.sort(key=lambda a: a[1])
|
|
for k, v in items:
|
|
f.write("#define %s_%s %s\n" % (prefix, k.upper(), v))
|
|
f = open("sre_constants.h", "w")
|