live-bootstrap/steps/python-3.8.16/patches/empty-date.patch
2025-10-17 18:53:10 +11:00

18 lines
519 B
Diff

SPDX-FileCopyrightText: 2022 Samuel Tyler <samuel@samuelt.me>
SPDX-License-Identifier: PSF-2.0
When defined __DATE__ is in the format MMM DD YYYY. xx/xx/xx does
not comply with this so the parser in Lib/platform.py fails on it.
--- Python-3.8.16/Modules/getbuildinfo.c 2022-12-21 13:41:18.120573458 +1100
+++ Python-3.8.16/Modules/getbuildinfo.c 2022-12-21 13:41:30.399716652 +1100
@@ -8,7 +8,7 @@
#ifdef __DATE__
#define DATE __DATE__
#else
-#define DATE "xx/xx/xx"
+#define DATE "xxx xx xxxx"
#endif
#endif