From 49d9dca64f1d09309e039a1ae45f60f18883f6e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sun, 20 Apr 2025 23:28:20 +0200 Subject: [PATCH] gnu: python@3.11: Support cross-compilation. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python.scm (python-3.11)[arguments]: Pass ‘--with-build-python’ when cross-compiling. Change-Id: Ibb210cc599ff06c5da7e73f706488488c84f5cba --- gnu/packages/python.scm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index ebc9712294b23b4f571e6f080f9dbe66e939388d..0f2b0891aa66b7947057c8b76d1c731252252c92 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1,6 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2013 Nikita Karetnikov -;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2021, 2023 Ludovic Courtès +;;; Copyright © 2013-2018, 2021, 2023, 2025 Ludovic Courtès ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge ;;; Copyright © 2014, 2015 Mark H Weaver ;;; Copyright © 2014, 2017, 2019 Eric Bavier @@ -728,9 +728,12 @@ def contents() -> str: ;; Disable runtime check failing if cross-compiling, see: ;; https://lists.yoctoproject.org/pipermail/poky/2013-June/008997.html #$@(if (%current-target-system) - '("ac_cv_buggy_getaddrinfo=no" - "ac_cv_file__dev_ptmx=no" - "ac_cv_file__dev_ptc=no") + #~("ac_cv_buggy_getaddrinfo=no" + "ac_cv_file__dev_ptmx=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.