guix-commits
[Top][All Lists]
Advanced

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

02/04: gnu: commencement: Build fix for python-boot0 on the Hurd.


From: guix-commits
Subject: 02/04: gnu: commencement: Build fix for python-boot0 on the Hurd.
Date: Sun, 19 Apr 2020 10:18:35 -0400 (EDT)

janneke pushed a commit to branch core-updates
in repository guix.

commit 1c5063af86246917853992421a11997470feff77
Author: Jan (janneke) Nieuwenhuizen <address@hidden>
AuthorDate: Mon Apr 13 00:11:27 2020 +0200

    gnu: commencement: Build fix for python-boot0 on the Hurd.
    
    Unlike during a non-chroot'ed build on Debian/Hurd, there is no 
/usr/include.
    
    * gnu/packages/commencement.scm (python-boot0)[arguments]: When building on
    the Hurd, add `fix-regen' stage to correct a reference to "/usr".
---
 gnu/packages/commencement.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 41d7772..f74be83 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -3217,7 +3217,15 @@ memoized as a function of '%current-system'."
                      ;; built, since it requires Linux headers.
                      (("'linux', ") ""))
                    #t))
-               (delete 'set-TZDIR)))
+               (delete 'set-TZDIR)
+               ,@(if (hurd-system?)
+                     `((add-before 'build 'fix-regen
+                         (lambda* (#:key inputs #:allow-other-keys)
+                           (let ((libc (assoc-ref inputs "libc")))
+                             (substitute* "Lib/plat-generic/regen"
+                               (("/usr/include/") (string-append libc 
"/include/")))
+                             #t))))
+                     '())))
            ((#:tests? _ #f) #f))))))
 
 (define/system-dependent ld-wrapper-boot0



reply via email to

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