From 6f79a984a8a82178450cadade3251b27970c6e6a Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Thu, 14 Mar 2024 12:57:20 -0500 Subject: [PATCH] python: fix config.guess for non-x86 arch * Should fix build on arm, arm64, riscv64, etc --- .../python/patches/python3.12-3.12.2.patchset | 32 +++++++++++++++++++ dev-lang/python/python3.12-3.12.2.recipe | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/dev-lang/python/patches/python3.12-3.12.2.patchset b/dev-lang/python/patches/python3.12-3.12.2.patchset index 5f650e73c..7b733ffe1 100644 --- a/dev-lang/python/patches/python3.12-3.12.2.patchset +++ b/dev-lang/python/patches/python3.12-3.12.2.patchset @@ -902,3 +902,35 @@ index b7c6b1b..84bb449 100644 -- 2.42.1 +From 7cc64ef6b93717111109443ef8f51b932f1a33f3 Mon Sep 17 00:00:00 2001 +From: Alexander von Gluck IV +Date: Thu, 14 Mar 2024 12:54:33 -0500 +Subject: [PATCH] config.guess: Update to universal haiku arch guessing + +* Matches upstream config.guess as of 2022, python just + ships a really old one +--- + config.guess | 7 +++++-- + 1 file changed, 5 insertions(+), 2 deletions(-) + +diff --git a/config.guess b/config.guess +index e81d3ae..366429c 100755 +--- a/config.guess ++++ b/config.guess +@@ -1364,8 +1364,11 @@ EOF + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. + GUESS=i586-pc-haiku + ;; +- x86_64:Haiku:*:*) +- GUESS=x86_64-unknown-haiku ++ ppc:Haiku:*:*) ++ GUESS=powerpc-apple-haiku ++ ;; ++ *:Haiku:*:*) ++ GUESS=$UNAME_MACHINE-unknown-haiku + ;; + SX-4:SUPER-UX:*:*) + GUESS=sx4-nec-superux$UNAME_RELEASE +-- +2.44.0 + diff --git a/dev-lang/python/python3.12-3.12.2.recipe b/dev-lang/python/python3.12-3.12.2.recipe index ce05748be..867ed1643 100644 --- a/dev-lang/python/python3.12-3.12.2.recipe +++ b/dev-lang/python/python3.12-3.12.2.recipe @@ -11,7 +11,7 @@ OSI-approved open source license." HOMEPAGE="https://www.python.org" LICENSE="Python" COPYRIGHT="1990-2023 Python Software Foundation" -REVISION="1" +REVISION="2" SOURCE_URI="https://www.python.org/ftp/python/$portVersion/Python-${portVersion}.tar.xz" CHECKSUM_SHA256="be28112dac813d2053545c14bf13a16401a21877f1a69eb6ea5d84c4a0f3d870" SOURCE_DIR="Python-$portVersion"