From unknown Sun Jun 22 07:53:16 2025 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * 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’. 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. base-commit: ba53ff9cc403c7f0388e2dc932cb46e665e81be7 -- 2.49.0 From unknown Sun Jun 22 07:53:16 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#77947] [PATCH] gnu: python@3.11: Support cross-compilation. References: <10b09cdcf00e74faada1e948a350d488c7d790a2.1745184684.git.ludo@gnu.org> In-Reply-To: <10b09cdcf00e74faada1e948a350d488c7d790a2.1745184684.git.ludo@gnu.org> Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 21 Apr 2025 14:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77947 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77947@debbugs.gnu.org Cc: ludo@gnu.org, yelninei@tutamail.com Received: via spool by 77947-submit@debbugs.gnu.org id=B77947.174524678518902 (code B ref 77947); Mon, 21 Apr 2025 14:47:02 +0000 Received: (at 77947) by debbugs.gnu.org; 21 Apr 2025 14:46:25 +0000 Received: from localhost ([127.0.0.1]:36145 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u6sPh-0004un-1C for submit@debbugs.gnu.org; Mon, 21 Apr 2025 10:46:25 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:60675) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1u6sPc-0004uE-7U for 77947@debbugs.gnu.org; Mon, 21 Apr 2025 10:46:20 -0400 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-39ee5ac4321so4308886f8f.1 for <77947@debbugs.gnu.org>; Mon, 21 Apr 2025 07:46:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745246774; x=1745851574; darn=debbugs.gnu.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=XMjZgtk4ib/OQ6pYDieOGMpwZyJgeBIz/B36jn5GOqo=; b=hQJS8Y9fyflzwbiBjZdFlTyRyiJ1XNgOy1XPOK6T7PQth0AfIvMOL1/tCcmCW0Seak gJZAoLiFHUfj43OdqxcGN0GRGC4kJfoAPECQdQVX5Kl6hv8vcrzUymTWQrQqV+wPm3zi Qw6N6OKPc7NgSb7IoqKZSF3Mz4FOtks+7We5lCJiTezTr+yv7mSv2R5ZlvUchR9iqIX4 XbGlI1/uaTy2dbJHZc46HF+W41DQAHVsSvTKwh3lGbRqlguT4C3ceJQ7pV9CoIcS/kMx rGWlF+fUDAaRMHyPKuXtyT4CIRGk+5I0xZ2bIZ7dlUfsuhC2orOa0yPUgYHGm/GV43jP 5TtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745246774; x=1745851574; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=XMjZgtk4ib/OQ6pYDieOGMpwZyJgeBIz/B36jn5GOqo=; b=hGlMuBgWrUh/GYc9a0BobAwobIQb8BZV1sRqXHyExrzBIAmMsfBM3qqOLBoicWHJFe K59umiDZHp8rI9VHEP+EC29/gKAt3khx8+BbGZi2DxZV8dLGRFpPtCGD+zl6cgCBbXS6 UhlxAk5SnttHmII/EKvPNFaLyPcuoDu/hbdmmDo8EQh17N2k7Gv7BW4NKZwqgHA9hC9w Ww610pdUSNJlunDo0EIv8o06q3aipJD+iCQ9X0grnQJ3z21e0cs0ius0V4I/6pXzXVuu kywGbIkem8q4TCPMrcKPQnOh63VCy7M3/ILVb+u4QJfSS1wqMiaBP5bwrttUyv1YhgsZ lMrA== X-Gm-Message-State: AOJu0YzVjq9XJnIvaYWo1mj0R0oVvCSAMWzutwuc/4tHvK47KGLYLqHp 1MUtOEYmKTn2K6i3dsjespmTniPYNNEiujq+RrjbBiAmE70jU12m X-Gm-Gg: ASbGncuOcaR+Fd0KfBhvwPve8WorQCQvdOZMxzIvbppx/LbICbn62deII0FrH6cfxEt 4XhLE9tGsBgB/aXXkQ0KUkJgt3y6k8ydvhnJBpvXwp+nOyvv02q7NvrJzBum0vt7IOjRZc/DzjH I9BGb1fAMpVZNzVbUp+BXTdV89wNh1H+8zbNieBwvaXLTGi3RxiZrqzFHW8NezPqjjNjxwVWnN5 HWT8XA6P8mzWjySKgbyivB7EXngBVSm9FqXs/zpTvCoiHSjaS8uJ8JAcVUU1Uy3x26i94wV/LrK KW4QFM+WWykIqTM+AqFV1sz84m65HPYi4pD/JgzV3OiwJLOHX6R/YFvzWjAKRb0rDNMN4J1X3Xv A4E8YMlxYTEktT2TvoMzSetY2PV8= X-Google-Smtp-Source: AGHT+IEtTYaKPGe66gaqtnPWpnr6UtZCVBP+ESIUvj2LpMUBA2aXcu/7dKMSqmno4oWLox4D6UPZKA== X-Received: by 2002:a05:6000:2503:b0:39c:1f02:5409 with SMTP id ffacd0b85a97d-39efba2ca86mr9233028f8f.9.1745246773738; Mon, 21 Apr 2025 07:46:13 -0700 (PDT) Received: from guxtil (cpc100684-bagu15-2-0-cust967.1-3.cable.virginm.net. [86.8.111.200]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39efa43ce2esm12281792f8f.57.2025.04.21.07.46.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Apr 2025 07:46:13 -0700 (PDT) From: Sharlatan Hellseher Date: Mon, 21 Apr 2025 15:46:11 +0100 Message-ID: <8734e11sjw.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi Ludovic, I have no strong opinion here, patch looks clear and reasonable if it fixes cross-compilation. There is other one 77957, fixing tests on GNU/Hurd which we may consider to merge together to prevent double re-build the world event ;-) which I guess we can't escape. - -- Oleg -----BEGIN PGP SIGNATURE----- iQJKBAEBCgA0FiEEmEeB3micIcJkGAhndtcnv/Ys0rUFAmgGWjMWHHNoYXJsYXRh bnVzQGdtYWlsLmNvbQAKCRB21ye/9izStRLZD/4u1avEDwl2ZTU2uVVRR//NDEQK NkUfhL+wXLswmXnzvYyna1EFO9hnPhKJi6ZOdmCYBmlwuISCREZWYXVN2w35jG2V RNvbp1SuPse9XDnvjZSJXIs4/6dDC9QnDmt9FQjHQSLfnQjeXWtsWNUQtXpHtxYh tvE9AZ/VSWWmeaeYBY1GH5I7FIbkKqfgdX8OlziCmXf33/0fXGH1VIx8gT48kbQp v1sZ8v0+P8BMTxta15Vl65HNPNrQtHuB/pmFviuW9Q3nY4SC8tuPQk+w5nSwp0mk TzClogOSCtRhzK66yRduYS5VxDYPuw7EStzoNUp127lOTJHk8XBFgdv9t5nYsgB6 kDY3MfwjlPVaCL2kHvVmIDlRywPzMAi9wCsVJ0QnBZDn7Ij7XvOXmuUayyCTsNxZ +9ebMJB9a2GWZW3UdpSNAxMvbYRuHel97lIENTiskk8aoJfQ50x3hq6h7XkNKxi3 1Fygba8rQ4+o3scdvR8wLk0Wzo4HrB64UDh/qfjfeF7P0LpUU612G3cnVc5UraH7 AAw12/qIbrCBqiIKzDB7pWZYqQ56QvP/HLh2IxAkOCzthirv35e4Q2MLPlh0fSky sv4YWu8RJj07O2JUGbkeLzLDucEinWZO71RY+mJGZj+r+l00oXGnwzSrRaA5romf NSSq/aFilEFqZiTxpw== =cIEk -----END PGP SIGNATURE----- From unknown Sun Jun 22 07:53:16 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#77947] [PATCH] gnu: python@3.11: Support cross-compilation. Resent-From: yelninei@tutamail.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 21 Apr 2025 15:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77947 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Sharlatan Hellseher Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 77947 <77947@debbugs.gnu.org> Received: via spool by 77947-submit@debbugs.gnu.org id=B77947.174524835927381 (code B ref 77947); Mon, 21 Apr 2025 15:13:02 +0000 Received: (at 77947) by debbugs.gnu.org; 21 Apr 2025 15:12:39 +0000 Received: from localhost ([127.0.0.1]:36624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u6sp5-00077Y-F0 for submit@debbugs.gnu.org; Mon, 21 Apr 2025 11:12:39 -0400 Received: from mail.w13.tutanota.de ([185.205.69.213]:43312) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u6sp2-00077B-LO for 77947@debbugs.gnu.org; Mon, 21 Apr 2025 11:12:37 -0400 Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10]) by mail.w13.tutanota.de (Postfix) with ESMTP id 319BD7D3B50D for <77947@debbugs.gnu.org>; Mon, 21 Apr 2025 17:12:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1745248320; s=s1; d=tutamail.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=+E/KQgNNPZEDYFKytKdhBCQqDLR7/kAVbdMnvQ0onA0=; b=bghPQUlGVCw7ZTMYB3OCS4Ig3R8w8+SKfz2yftciDewEsHS3j3+ENSkB1Yoe7kpA YrH4xhd+BrCZF1CjFg0ERxQnaTsB0qg7RoXoKy8swnHWn8dTl7slYoIcQpqOVBYbHwQ +H4xIRscmcMc+knIm40zJW2F5IVNvTvEQhx1SrEraI//TQZbuIH5obVtUkhZWCghs/5 E5VxahnxIkkIC9P89NBX7arn1TmVD59P9kAJKye/48x4HUiN2QOMO03XPWQRysE2Rj6 9s7Y46c/eX6L+26DC8TpJQiafucAkBcbdY0Vq7uO275Ey5xbrXFKiMz5fj3IF0xSNyj 1ziMIkmRdg== Date: Mon, 21 Apr 2025 17:12:00 +0200 (CEST) From: yelninei@tutamail.com Message-ID: In-Reply-To: <8734e11sjw.fsf@gmail.com> References: <8734e11sjw.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, Apr 21, 2025, 14:46 by sharlatanus@gmail.com: > > Hi Ludovic, > > I have no strong opinion here, patch looks clear and reasonable if it > fixes cross-compilation. > > There is other one 77957, fixing tests on GNU/Hurd which we may consider > to merge together to prevent double re-build the world event ;-) which I > guess we can't escape. > > >From what I can see both should not cause rebuilds for the regular python. The cross compilation fix is behind a ,@(if (%current-target-system) ...) and my test skips are only for ,@(if (system-hurd?) ...) so only the python on hurd and a cross compiled python should change (which currently dont build) I checked that the x86-linux python is the same before sending my patch. From unknown Sun Jun 22 07:53:16 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#77947: closed (Re: [PATCH] gnu: python@3.11: Support cross-compilation.) Message-ID: References: <87v7qx2m90.fsf@gnu.org> <10b09cdcf00e74faada1e948a350d488c7d790a2.1745184684.git.ludo@gnu.org> X-Gnu-PR-Message: they-closed 77947 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 77947@debbugs.gnu.org Date: Mon, 21 Apr 2025 22:18:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1745273884-13653-1" This is a multi-part message in MIME format... ------------=_1745273884-13653-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #77947: [PATCH] gnu: python@3.11: Support cross-compilation. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 77947@debbugs.gnu.org. --=20 77947: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D77947 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1745273884-13653-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 77947-done) by debbugs.gnu.org; 21 Apr 2025 22:17:43 +0000 Received: from localhost ([127.0.0.1]:40446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u6zSQ-0003X0-PD for submit@debbugs.gnu.org; Mon, 21 Apr 2025 18:17:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33076) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u6zS9-0003Vw-LU for 77947-done@debbugs.gnu.org; Mon, 21 Apr 2025 18:17:26 -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 1u6zS4-0006Al-2b; Mon, 21 Apr 2025 18:17:20 -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:References:In-Reply-To:Subject:To: From; bh=05ROqa8cs/RwSoqD32VsgaDLoOqjtUT+vzWtqigO8ng=; b=C0kYPt8XyMxvozopRo0H xRTLDRocSCkhO9S2UvlYf+sthe28OYj3ie4BD9pDrJbNYCxywWfrBnNrBD4xyLZC8oTkVISP8fO6t hFZ47g5DHpwDINkNfzhj5VPdRJaBrSZh7R8rynByuUaB8VWJ2/zYc7KxIlS/OCENmXtQ7w+c+BVKQ GVDozOwEI/OWLPVkbesqaqpVKhu97w6bWjy3PBpWVks75EDH0UQu6GEyRD28u8dD82Dr1V5irnTsC Ggo6pY7OWVIQ3mwXtpsHqVmwUhGD4Teb1fJH3HSSTzSszyzKVIO93/jmap8vgucWtyj0lXz0fVR5U lvnWNDFoXnQxQQ==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: yelninei@tutamail.com Subject: Re: [PATCH] gnu: python@3.11: Support cross-compilation. In-Reply-To: (yelninei@tutamail.com's message of "Mon, 21 Apr 2025 17:12:00 +0200 (CEST)") References: <8734e11sjw.fsf@gmail.com> User-Agent: mu4e 1.12.9; emacs 29.4 X-URL: https://people.bordeaux.inria.fr/lcourtes/ X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu X-Revolutionary-Date: Tridi 3 =?utf-8?Q?Flor=C3=A9al?= an 233 de la =?utf-8?Q?R=C3=A9volution=2C?= jour de la =?utf-8?Q?Foug=C3=A8re?= Date: Tue, 22 Apr 2025 00:16:59 +0200 Message-ID: <87v7qx2m90.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77947-done Cc: Sharlatan Hellseher , 77947 <77947-done@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, yelninei@tutamail.com writes: > Apr 21, 2025, 14:46 by sharlatanus@gmail.com: > >> >> Hi Ludovic, >> >> I have no strong opinion here, patch looks clear and reasonable if it >> fixes cross-compilation. >> >> There is other one 77957, fixing tests on GNU/Hurd which we may consider >> to merge together to prevent double re-build the world event ;-) which I >> guess we can't escape. >> >> > From what I can see both should not cause rebuilds for the regular python. > The cross compilation fix is behind a ,@(if (%current-target-system) > ...) and my test skips are only for ,@(if (system-hurd?) ...) so only > the python on hurd and a cross compiled python should change (which > currently dont build) > > I checked that the x86-linux python is the same before sending my patch. Yes, it=E2=80=99s all fine. Pushed both! 5f1ee7ba73 gnu: python@3.11: Skip more tests on GNU/Hurd. 49d9dca64f gnu: python@3.11: Support cross-compilation. Thanks, Ludo=E2=80=99. ------------=_1745273884-13653-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: guix-patches@gnu.org Subject: [PATCH] gnu: python@3.11: Support cross-compilation. 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 Content-Type: text/plain; charset=UTF-8 X-Debbugs-Cc: Lars-Dominik Braun , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * 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’. 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. base-commit: ba53ff9cc403c7f0388e2dc932cb46e665e81be7 -- 2.49.0 ------------=_1745273884-13653-1--