mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-09 04:45:23 +01:00
Add Python-3.1.5
This commit is contained in:
parent
eadc92cf38
commit
2325df7f38
9 changed files with 763 additions and 0 deletions
31
sysc/Python-3.1.5/files/graminit-regen.patch
Normal file
31
sysc/Python-3.1.5/files/graminit-regen.patch
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
|
||||
|
||||
SPDX-License-Identifier: PSF-2.0
|
||||
|
||||
There is a cycle in the build process. graminit.h requires
|
||||
parsetok.c to be built, but graminit.h is included in parsetok.c.
|
||||
Luckily the cycle can be broken by just NOP-ing the logic from
|
||||
graminit.h.
|
||||
|
||||
We apply this patch before regen-ing graminit.h and revert it
|
||||
afterward.
|
||||
|
||||
--- Parser/parsetok.c 2022-10-11 14:11:29.522466304 +1100
|
||||
+++ Parser/parsetok.c 2022-10-11 14:11:42.786627172 +1100
|
||||
@@ -8,7 +8,6 @@
|
||||
#include "parser.h"
|
||||
#include "parsetok.h"
|
||||
#include "errcode.h"
|
||||
-#include "graminit.h"
|
||||
|
||||
|
||||
/* Forward */
|
||||
@@ -240,7 +239,7 @@
|
||||
}
|
||||
}
|
||||
} else if (tok->encoding != NULL) {
|
||||
- node* r = PyNode_New(encoding_decl);
|
||||
+ node* r = NULL;
|
||||
if (!r) {
|
||||
err_ret->error = E_NOMEM;
|
||||
n = NULL;
|
||||
Loading…
Add table
Add a link
Reference in a new issue