aboutsummaryrefslogtreecommitdiff
path: root/guix/self.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2018-12-02 22:53:22 +0100
committerLudovic Courtès <ludo@gnu.org>2018-12-02 22:53:22 +0100
commit2d337760501662f9a380a117312934e489bd5f1d (patch)
tree4e909f15ab3e6358a6d09de74f89d5879d79bdde /guix/self.scm
parent8757209ec56bcc8d0d57c6608673cb26c2fce805 (diff)
downloadgnu-guix-2d337760501662f9a380a117312934e489bd5f1d.tar
gnu-guix-2d337760501662f9a380a117312934e489bd5f1d.tar.gz
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".
Diffstat (limited to 'guix/self.scm')
-rw-r--r--guix/self.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/guix/self.scm b/guix/self.scm
index 96fef44e78..efbf9ec9ac 100644
--- a/guix/self.scm
+++ b/guix/self.scm
@@ -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'.