me
/
guix
Archived
1
0
Fork 0

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".
master
Jan (janneke) Nieuwenhuizen 2020-04-13 00:11:27 +02:00 committed by Jan Nieuwenhuizen
parent 189bfb555d
commit 1c5063af86
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 9 additions and 1 deletions

View File

@ -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