mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00

0001-Avoid-shebang-overflow-on-python-config.py.patch 0001-Makefile.pre-use-qemu-wrapper-when-gathering-profile.patch 0001-Skip-failing-tests-due-to-load-variability-on-YP-AB.patch 0001-gh-114492-Initialize-struct-termios-before-calling-t.patch 0001-python3-use-cc_basename-to-replace-CC-for-checking-c.patch 0001-skip-no_stdout_fileno-test-due-to-load-variability.patch 0001-test_xml_etree.py-Fix-for-Expat-2.6.0-with-reparse-d.patch 0020-configure.ac-setup.py-do-not-add-a-c refreshed for 3.12.2 Changelog: https://docs.python.org/3.12/whatsnew/3.12.html (From OE-Core rev: 288bdc342035f18451509b6c27e3b88b546dc984) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
31 lines
1.3 KiB
Diff
31 lines
1.3 KiB
Diff
From 365399f17d35719d828ddd49182dcb401fb7791c Mon Sep 17 00:00:00 2001
|
|
From: Paulo Neves <ptsneves@gmail.com>
|
|
Date: Tue, 7 Jun 2022 16:16:41 +0200
|
|
Subject: [PATCH] Avoid shebang overflow on python-config.py
|
|
|
|
The whole native path may be too big, leading to shebang
|
|
overflow. Let's just use the env shebang.
|
|
|
|
Denial reason: [1]
|
|
|
|
Upstream-Status: Denied [distribution]
|
|
|
|
[1] https://github.com/python/cpython/pull/93760#pullrequestreview-1005365737
|
|
---
|
|
Makefile.pre.in | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/Makefile.pre.in b/Makefile.pre.in
|
|
index 77bf09a..6353c57 100644
|
|
--- a/Makefile.pre.in
|
|
+++ b/Makefile.pre.in
|
|
@@ -2339,6 +2339,8 @@ python-config: $(srcdir)/Misc/python-config.in Misc/python-config.sh
|
|
@ # Substitution happens here, as the completely-expanded BINDIR
|
|
@ # is not available in configure
|
|
sed -e "s,@EXENAME@,$(EXENAME)," < $(srcdir)/Misc/python-config.in >python-config.py
|
|
+ @ # Otherwise we might get huge shebangs with native paths
|
|
+ sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' python-config.py
|
|
@ # Replace makefile compat. variable references with shell script compat. ones; $(VAR) -> ${VAR}
|
|
LC_ALL=C sed -e 's,\$$(\([A-Za-z0-9_]*\)),\$$\{\1\},g' < Misc/python-config.sh >python-config
|
|
@ # On Darwin, always use the python version of the script, the shell
|