gnu: guix: Fix cross build of documentation translations.

This fixes building guix-ru.info when building (for the Hurd)

    guix.ru.texi:3489: @node `??????????????????????' previously defined
    guix.ru.texi:2535: here is the previous definition as @node
    make[2]: *** [Makefile:5287: doc/guix.ru.info] Error 1

and building guix-zn-CN.info when building (for the Hurd)

    guix.zh_CN.texi:651: @node `??????' previously defined
    guix.zh_CN.texi:522: here is the previous definition as @node
    make[2]: *** [Makefile:5352: doc/guix.zh_CN.info] Error 1

and building guix-cookbook.ko when building (for the Hurd)

    guix-cookbook.ko.texi:781: @node `??????' previously defined
    guix-cookbook.ko.texi:522: here is the previous definition as @node
    make[2]: *** [Makefile:5549: doc/guix-cookbook.ko.info] Error 1

* gnu/packages/package-management.scm (guix)[native-inputs]: Add
libc-utf8-locales-for-target.

Change-Id: I561b4da84b31b343e515559feb90d773b1cf440a
This commit is contained in:
Janneke Nieuwenhuizen 2024-01-20 10:21:59 +01:00 committed by Ludovic Courtès
parent 7f2b754b33
commit f41033ec26
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -465,7 +465,8 @@ (define code
;; the 'patch-shebangs' phase, which would otherwise
;; change it to 'GUILE/bin/guile'.
(delete 'patch-shebangs))))
(native-inputs `(("pkg-config" ,pkg-config)
(native-inputs `(("locales" ,(libc-utf8-locales-for-target))
("pkg-config" ,pkg-config)
;; Guile libraries are needed here for
;; cross-compilation.