From patchwork Sun Apr 20 21:33:49 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 41834 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A3BEA27BC4B; Sun, 20 Apr 2025 22:35:46 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7851327BC49 for ; Sun, 20 Apr 2025 22:35:45 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u6cJp-0005h3-6K; Sun, 20 Apr 2025 17:35:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u6cJe-0005gh-7t for guix-patches@gnu.org; Sun, 20 Apr 2025 17:35:07 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u6cJd-0000U8-TD for guix-patches@gnu.org; Sun, 20 Apr 2025 17:35:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=57/ZFGqYfI1bVhiwqQIjg1A10vwMn3ObW7IYxChG53c=; b=Temkgz8YKjzhOnD1JQVs8RGCwNKvYp9hh17klqIZ8h4sQC4GEBvVfopfh7XDb8SHSNTBSjLpY1ixQDqR47wxrJhsE8ImAvZjUR2ZH0jFm6E6xrZxKtFV60s8xmEK+K4yPfH7SCcRx5Rp5aLAdnPrybe58g0vngT+golyqI7ELjsW5DbD9CG6j3A0+U3z2T/Yxy0KFy+RXeEarAkPgcZo/UMVltYkOtdVzH5SUOE8BOLweG+9plceZkZGDJgtBUoP3+QHKo4kHg+SrrQ2E5RgTrao5Pz/Urlykp5PbWeIAtyQb/9FgP2Fb/8yOmSVgbTba6tDX7zTWAdscwolxyLxIQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1u6cJa-0001U3-Hk; Sun, 20 Apr 2025 17:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77947] [PATCH] gnu: python@3.11: Support cross-compilation. Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, guix-patches@gnu.org Resent-Date: Sun, 20 Apr 2025 21:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 77947 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77947@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= , Lars-Dominik Braun , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Lars-Dominik Braun , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour Received: via spool by submit@debbugs.gnu.org id=B.17451848635528 (code B ref -1); Sun, 20 Apr 2025 21:35:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Apr 2025 21:34:23 +0000 Received: from localhost ([127.0.0.1]:54842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u6cIr-0001QE-6y for submit@debbugs.gnu.org; Sun, 20 Apr 2025 17:34:22 -0400 Received: from lists.gnu.org ([2001:470:142::17]:36456) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u6cIn-0001Oi-25 for submit@debbugs.gnu.org; Sun, 20 Apr 2025 17:34:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u6cIf-0005cD-3z for guix-patches@gnu.org; Sun, 20 Apr 2025 17:34:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u6cId-0000GP-SU; Sun, 20 Apr 2025 17:34:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=57/ZFGqYfI1bVhiwqQIjg1A10vwMn3ObW7IYxChG53c=; b=DCfpwLCwIXb72u Qzq5txOYmNJCA1L560kONrbyvCSW4HaVeWmIGpCT8C8LbtogJjYVsRKLtPLouuvb0619PlLH0eXA4 nOL6lJRz6LcRcajsioZ2lkm516hm/eUKAiyyZ6eu/ZToT+991jD9DlLzYJEMcEN7S0vTPWsx6+3lN /4Vq2W5KjuhkMZiWBYD0LVMGbmdwhUjtuMQL4HI7s51mIgCvSSjmAjoLoGlOtA0PR8cd5GsKdOVF+ hzFM4QgDGVhp7WmJ9TGHSzDYwEyVtRESLTOif/wtF7DPwq1rSX++vncNygacU8VskasXzjxsNt4gH hzmjqxaWLW58dATdSBAg==; From: Ludovic =?utf-8?q?Court=C3=A8s?= Date: Sun, 20 Apr 2025 23:33:49 +0200 Message-ID: <10b09cdcf00e74faada1e948a350d488c7d790a2.1745184684.git.ludo@gnu.org> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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(-) Hello Python team, This fixes cross-compilation of python@3.11, adding the ‘--with-build-python’ flag, which apparently wasn’t needed for 3.10. I found this while attempting to build a childhurd as part of my system config. Thoughts? Ludo’. base-commit: ba53ff9cc403c7f0388e2dc932cb46e665e81be7 diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index ebc9712294..0f2b0891aa 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 @@ (define-public python-3.11 ;; 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.