python3.10: patch set re-work. (#10750)

Re-worked the patchset, mostly to avoid having scattered changes to the same
areas, trying to keep each "commit" on a narrower focus/topic.

Fixes #10211, and attempts to fix some remaining _INSTALL_SCHEMES issues.
(makes `platinclude` point to the system headers for the default scheme,
which should avoid having to set HAIKU_USE_VENDOR_DIRECTORIES=1 when bulding
gdb).
This commit is contained in:
OscarL
2024-07-31 03:02:34 -03:00
committed by GitHub
parent b771ded643
commit 7694f68eca
2 changed files with 333 additions and 363 deletions

View File

@@ -11,7 +11,7 @@ OSI-approved open source license."
HOMEPAGE="https://www.python.org"
LICENSE="Python"
COPYRIGHT="1990-2024 Python Software Foundation"
REVISION="1"
REVISION="2"
SOURCE_URI="https://www.python.org/ftp/python/$portVersion/Python-$portVersion.tar.xz"
CHECKSUM_SHA256="9c50481faa8c2832329ba0fc8868d0a606a680fc4f60ec48d26ce8e076751fda"
SOURCE_DIR="Python-$portVersion"
@@ -116,7 +116,7 @@ BUILD()
# "compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
# for debug/optimization stuff. BASECFLAGS is for flags that are required
# just to get things to compile and link."
export BASECFLAGS="-D_BSD_SOURCE"
export BASECFLAGS="-pipe -D_BSD_SOURCE"
# Not exporting OPT ends up with "-g -fwrapv -O3 -Wall" being used,
# and using OPT="" means the build ends up being "-O0".
@@ -206,9 +206,7 @@ INSTALL()
# Problem is "os.getcwd()" will return wrong data, causing some file operations to fail.
# For reference... Tests results on beta4 (x64):
# 25 test ommited. 320 tests OK. 24 tests failed. 27 tests skipped.
# On verbose re-run stage:
# 25 test ommited. 323 tests OK. 21 tests failed. 27 tests skipped.
# 345 tests OK. 23 tests failed. 28 tests skipped.
TEST()
{
# Remove tests data left-overs, if any