From 9873d2c433b7dc8e2d510fc437c5b13c98d0a4ff Mon Sep 17 00:00:00 2001 From: Kaelyn Takata Date: Mon, 25 May 2026 13:49:27 -0700 Subject: [PATCH] gnu: python@3.12: Support cross-compilation. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python.scm (python-3.12)[arguments]: Pass ‘--with-build-python’ when cross-compiling. Fixes: guix/guix#8827 Merges: guix/guix!8826 Change-Id: Ibaea0cf3250ee0ce0b2d838a4edc30fa1ac59dbc Signed-off-by: Sharlatan Hellseher --- gnu/packages/python.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index c205b256f4d..7eaf07b6325 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -984,7 +984,10 @@ def contents() -> str: #$@(if (%current-target-system) #~("ac_cv_buggy_getaddrinfo=no" "ac_cv_file__dev_ptmx=no" - "ac_cv_file__dev_ptc=no") + "ac_cv_file__dev_ptc=no" + (string-append "--with-build-python=" + #+(this-package-native-input "python") + "/bin/python3")) #~()) ;; -fno-semantic-interposition reinstates some ;; optimizations by gcc leading to around 15% speedup.