guix-commits
[Top][All Lists]
Advanced

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

02/03: gnu: guix: Bugfix for cross compiling to the Hurd.


From: guix-commits
Subject: 02/03: gnu: guix: Bugfix for cross compiling to the Hurd.
Date: Tue, 7 Apr 2020 16:32:52 -0400 (EDT)

janneke pushed a commit to branch wip-hurd-vm
in repository guix.

commit 034e41bda0957b3236d35aa9a06968c465a381df
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Tue Apr 7 22:12:54 2020 +0200

    gnu: guix: Bugfix for cross compiling to the Hurd.
    
    <janneke> (with-target "i586-pc-gnu" target-most-positive-fixnum)
    <janneke> => 2305843009213693951
    
    * gnu/packages/package-management.scm (guix): When cross-compiling, use
    hardcoded 536870911 instead of most-positive-fixnum.  This fixes cross build
    for the Hurd.
---
 gnu/packages/package-management.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/package-management.scm 
b/gnu/packages/package-management.scm
index 9a7ca0d..f17b44e 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -194,6 +194,16 @@ $(prefix)/etc/init.d\n")))
                                                     ":" (getenv "PATH"))))
                                   #t))))
                           '())
+                    ,@(if (hurd-target?)
+                          ;; (with-target "i586-pc-gnu" 
target-most-positive-fixnum)
+                          ;;   => 2305843009213693951
+                          `((add-before 'build 'patch-guix/records.scm
+                              (lambda _
+                                (substitute* "guix/records.scm"
+                                  ((" most-positive-fixnum")
+                                   " 536870911"))
+                                #t)))
+                          '())
                     (add-before 'check 'copy-bootstrap-guile
                       (lambda* (#:key system inputs #:allow-other-keys)
                         ;; Copy the bootstrap guile tarball in the store used



reply via email to

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