self: Provide UTF-8 locales when building the manual.

Fixes <https://bugs.gnu.org/33580>.
Reported by <znavko@tutanota.com>.

* guix/self.scm (info-manual)[glibc-utf8-locales]: New variable.
[build]: Add call to 'setenv' for "GUIX_LOCPATH".
This commit is contained in:
Ludovic Courtès 2018-12-02 22:53:22 +01:00
parent 8757209ec5
commit 2d33776050
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 8 additions and 0 deletions

View File

@ -273,6 +273,10 @@ DOMAIN, a gettext domain."
(module-ref (resolve-interface '(gnu packages graphviz))
'graphviz))
(define glibc-utf8-locales
(module-ref (resolve-interface '(gnu packages base))
'glibc-utf8-locales))
(define documentation
(file-append* source "doc"))
@ -336,6 +340,10 @@ DOMAIN, a gettext domain."
(delete-file-recursively "images")
(symlink (string-append #$output "/images") "images")
;; Provide UTF-8 locales needed by the 'xspara.c' code in makeinfo.
(setenv "GUIX_LOCPATH"
#+(file-append glibc-utf8-locales "/lib/locale"))
(for-each (lambda (texi)
(unless (string=? "guix.texi" texi)
;; Create 'version-LL.texi'.