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)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Thu, 15 Sep 2022 06:22:23 +0000 (08:22 +0200)
commitb3373efe5aa2ebbffa750d6ecaedbd646cbb6b05
tree9f1bc36e3038676384226862bcd871f1d7ca1fd8
parente4f01cad33b6c1af934b78e789c16826bef7af65
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>
(cherry picked from commit 992fcd1bd8770bb44a56bc4173ac3befe0fa16ef)
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]