guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: Python: Support cross-compiling for the Hurd.


From: guix-commits
Subject: 02/02: gnu: Python: Support cross-compiling for the Hurd.
Date: Tue, 30 Jun 2020 15:32:19 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit c8a4e59ac4bafcb06d3f49794aabd11fa0352880
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Mon Jun 29 20:17:42 2020 +0200

    gnu: Python: Support cross-compiling for the Hurd.
    
    * gnu/packages/python.scm (python-3.8): When cross-compiling for Hurd, add
    substitution for the configure script.
---
 gnu/packages/python.scm | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 9469f89..e2b254b 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -401,6 +401,17 @@ data types.")
           ,@(if (hurd-system?)
                 `((delete 'patch-regen-for-hurd)) ;regen was removed after 
3.5.9
                 '())
+          ,@(if (hurd-target?)
+                ;; The build system refuses to cross-compile for unknown 
targets
+                ;; even though it works fine.  Add GNU/Hurd target.
+                ;; TODO: Make it a patch in a future rebuild cycle.
+                '((add-before 'configure 'support-hurd-cross-compile
+                    (lambda _
+                      (substitute* "configure"
+                        (("\\*-\\*-vxworks.*" all)
+                         (string-append "*-*-gnu)\nac_sys_system=GNU\n;;\n" 
all)))
+                      #t)))
+                '())
           (add-before 'check 'set-TZDIR
             (lambda* (#:key inputs native-inputs #:allow-other-keys)
               ;; test_email requires the Olson time zone database.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]