guix-devel/gnu
Ludovic Courtès 87c8b92f50 gnu: commencement: Make UTF-8 locales available right after 'guile-final'.
In <http://hydra.gnu.org/build/263170>, we see:

   153: 12 [patch-usr-bin-file #:native-inputs #f ...]

  [...]

     ?: 1 [regexp-exec # ...]
  In ice-9/boot-9.scm:
   106: 0 [#<procedure 1998ec0 at ice-9/boot-9.scm:97:6 (thrown-k . args)> encoding-error ...]

  ice-9/boot-9.scm:106:20: In procedure #<procedure 1998ec0 at ice-9/boot-9.scm:97:6 (thrown-k . args)>:
  ice-9/boot-9.scm:106:20: Throw to key `encoding-error' with args `("scm_to_stringn" "cannot convert narrow string to output locale" 84 #f #f)'.

This is due to that fact that 'patch-/usr/bin/file' read a line
containing a byte sequence with bytes > 127 (namely a copyright sign.)
But this build was running with a C locale, and so those bytes cannot be
represented in that locale, hence this error.

This commit makes the UTF-8 locales available earlier such that
everything can be represented in locale encoding.

* gnu/packages/commencement.scm (glibc-utf8-locales-final): Move
  earlier; change "gzip" input to GZIP built with %BOOT4-INPUTS.
  (%boot5-inputs): Define to %BOOT4-INPUTS plus
  GLIBC-UTF8-LOCALES-FINAL.
  (gnu-make-final, coreutils-final, grep-final): Use it instead of
  %BOOT4-INPUTS.
  (gzip-final): Remove.
  (%boot6-inputs): New variable.
  (%final-inputs): Use it instead of %BOOT5-INPUTS.  Don't rely on
  GZIP-FINAL.
2015-03-01 17:03:04 +01:00
..
build linux-boot: Don't fail if /root/etc/mtab is a dangling symlink. 2015-01-28 21:32:58 +01:00
packages gnu: commencement: Make UTF-8 locales available right after 'guile-final'. 2015-03-01 17:03:04 +01:00
services services: slim: Add "F1 to change" in session message. 2015-02-26 22:25:15 +01:00
system artwork: Update snapshot to GuixSD branding. 2015-02-12 23:43:18 +01:00
artwork.scm artwork: Update to latest GRUB image. 2015-02-24 23:43:03 +01:00
packages.scm gnu: Raise an error when a bootstrap binary is not found. 2015-01-26 00:06:32 +01:00
services.scm services: Add 'auto-start?' field to <service>. 2014-11-10 23:23:32 +01:00
system.scm system: Add bindings to configure libc's NSS. 2015-02-04 22:49:35 +01:00