mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-04 10:25:25 +01:00
31 lines
877 B
Diff
31 lines
877 B
Diff
SPDX-FileCopyrightText: 2022 Samuel Tyler <samuel@samuelt.me>
|
|
|
|
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.
|
|
|
|
--- Python-3.1.5/Parser/parsetok.c 2022-10-11 14:11:29.522466304 +1100
|
|
+++ Python-3.1.5/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;
|