python3: backport and fix target musl libc detection
authorŠimon Bořek <simon.borek@nic.cz>
Mon, 27 Jun 2022 12:49:05 +0000 (14:49 +0200)
committerRosen Penev <rosenp@gmail.com>
Mon, 12 Sep 2022 21:20:14 +0000 (14:20 -0700)
commit992fcd1bd8770bb44a56bc4173ac3befe0fa16ef
tree547f7db0f973563092197c0a88b5e8fdf7cc4085
parent3eba8468e1e93e5f66df20aa3f8ebe5d3f1cffea
python3: backport and fix target musl libc detection

Patch 030:
Backported from Python main branch[^1] for Python to distinguish between glibc and musl libc SOABI.

Patch 131:
Changes PLATFORM_TRIPLET -gnu/-musl suffix detection (performed by the backported patch)
to be based on the target OS instead of the building OS.

See included patches for more detailed descriptions.

Specifically this fixes cross-compilation for mpc8548 CPUs with SPE instructions[^2] enabled.

[^1]: merged to python:main as https://github.com/python/cpython/pull/24502 'bpo-43112: detect musl as a separate SOABI'
[^2]: https://www.nxp.com/docs/en/reference-manual/SPEPEM.pdf

Co-authored-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Šimon Bořek <simon.borek@nic.cz>
lang/python/python3/patches/030-bpo-43112-detect-musl-as-a-separate-SOABI-GH-24502.patch [new file with mode: 0644]
lang/python/python3/patches/131-configure_ac-switch-PLATFORM_TRIPLET-suffix-to-musl.patch [new file with mode: 0644]