python3: Fix/expand platform triplet detection
authorJeffery To <jeffery.to@gmail.com>
Tue, 11 Jul 2023 07:48:19 +0000 (15:48 +0800)
committerJeffery To <jeffery.to@gmail.com>
Tue, 5 Sep 2023 04:42:32 +0000 (12:42 +0800)
commit2438d49f1016dc942f0d82af335e7fdd4b88c6a0
treefc48e4c92481abb3a167c35078f7f14242b62435
parentb8d9ad62e04007697cd8a3bf24f1c4a8f788ea81
python3: Fix/expand platform triplet detection

Currently, configure does not find the correct platform triplet for musl
as the default build/host values passed by OpenWrt buildroot does not
contain the text "linux-musl".

This backports
https://github.com/python/cpython/commit/c163d7f0b67a568e9b64eeb9c1cbbaa127818596
to add detection for mips soft float and musl.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 5a0055df0621d4347723993b04a2fcf045929acf)
lang/python/python3/Makefile
lang/python/python3/patches/100-gh-95855-Refactor-platform-triplet-detection-code-GH-107221.patch [new file with mode: 0644]
lang/python/python3/patches/131-configure_ac-switch-PLATFORM_TRIPLET-suffix-to-musl.patch [deleted file]