GNU bug report logs -
#77947
[PATCH] gnu: python@3.11: Support cross-compilation.
Previous Next
To reply to this bug, email your comments to 77947 AT debbugs.gnu.org.
There is no need to reopen the bug first.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
lars <at> 6xq.net, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, tanguy <at> bioneland.org, guix-patches <at> gnu.org
:
bug#77947
; Package
guix-patches
.
(Sun, 20 Apr 2025 21:35:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
New bug report received and forwarded. Copy sent to
lars <at> 6xq.net, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, tanguy <at> bioneland.org, guix-patches <at> gnu.org
.
(Sun, 20 Apr 2025 21:35:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* 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 <at> 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 <nikita <at> karetnikov.org>
-;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2021, 2023 Ludovic Courtès <ludo <at> gnu.org>
+;;; Copyright © 2013-2018, 2021, 2023, 2025 Ludovic Courtès <ludo <at> gnu.org>
;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas <at> enge.fr>
;;; Copyright © 2014, 2015 Mark H Weaver <mhw <at> netris.org>
;;; Copyright © 2014, 2017, 2019 Eric Bavier <bavier <at> member.fsf.org>
@@ -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
Information forwarded
to
guix-patches <at> gnu.org
:
bug#77947
; Package
guix-patches
.
(Mon, 21 Apr 2025 14:47:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 77947 <at> debbugs.gnu.org (full text, mbox):
-----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-----
Information forwarded
to
guix-patches <at> gnu.org
:
bug#77947
; Package
guix-patches
.
(Mon, 21 Apr 2025 15:13:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 77947 <at> debbugs.gnu.org (full text, mbox):
Hello,
Apr 21, 2025, 14:46 by sharlatanus <at> 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.
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Mon, 21 Apr 2025 22:18:04 GMT)
Full text and
rfc822 format available.
Notification sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
bug acknowledged by developer.
(Mon, 21 Apr 2025 22:18:04 GMT)
Full text and
rfc822 format available.
Message #16 received at 77947-done <at> debbugs.gnu.org (full text, mbox):
Hi,
yelninei <at> tutamail.com writes:
> Apr 21, 2025, 14:46 by sharlatanus <at> 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’s all fine. Pushed both!
5f1ee7ba73 gnu: python <at> 3.11: Skip more tests on GNU/Hurd.
49d9dca64f gnu: python <at> 3.11: Support cross-compilation.
Thanks,
Ludo’.
This bug report was last modified 3 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.