summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorJan (janneke) Nieuwenhuizen <janneke@gnu.org>2020-04-13 00:11:27 +0200
committerJan Nieuwenhuizen <janneke@gnu.org>2020-04-19 16:18:01 +0200
commit1c5063af86246917853992421a11997470feff77 (patch)
tree75e554f7d7788bccff35e7e43893be1818b128a1 /gnu/packages
parent189bfb555d1a5cac8d705588a0c7ccdeaafd6a99 (diff)
downloadguix-1c5063af86246917853992421a11997470feff77.tar.gz
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".
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/commencement.scm10
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 41d7772eea..f74be83912 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