janneke pushed a commit to branch wip-hurd
in repository guix.
commit 11c8dddc835e19618694309d1068722f29620e68
Author: Jan Nieuwenhuizen <[email protected]>
AuthorDate: Tue Mar 3 02:35:12 2020 -0500
gnu: commencement: static-bash-for-glibc: Hurd build fix.
* gnu/packages/commencement.scm (static-bash-for-glibc): Add
-lhurduser -lmachuser for man2html.
---
gnu/packages/commencement.scm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 174ce34..11eab51 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -3378,7 +3378,16 @@ exec ~a/bin/~a-~a -B~a/lib -Wl,-dynamic-linker -Wl,~a/~a
\"$@\"~%"
(list (string-append "LDFLAGS=-static -L"
(assoc-ref %build-inputs
"libc:static")
- "/lib")))))))))
+ "/lib"))))
+ ((#:phases phases)
+ `(modify-phases ,phases
+ ,@(if (hurd-target?)
+ '((add-after 'unpack 'patch-man2html
+ (lambda _
+ (substitute* "support/Makefile.in"
+ (("^LIBS = @LIBS@")
+ "LIBS = @LIBS@ -lhurduser -lmachuser")))))
+ '()))))))))
(define gettext-boot0
;; A minimal gettext used during bootstrap.