system: Add 'locale-libcs' field.
authorLudovic Courtès <ludo@gnu.org>
Fri, 30 Oct 2015 22:05:52 +0000 (23:05 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 30 Oct 2015 22:05:52 +0000 (23:05 +0100)
commit34760ae7031b19529aff2355cc458f61a8daa41f
tree723dc3e13d5792f01d20cfe2996ba92c87e1a62b
parent137d957ed346547274b09ccf2383a61b5b65cce1
system: Add 'locale-libcs' field.

* gnu/system/locale.scm (localedef-command)[maybe-version-directory]:
  New procedure.
  Use it.
  (locale-directory): Rename to...
  (single-locale-directory): ... this.  Check the version of LIBC to
  determine whether to create a "X.Y" sub-directory or to make it a
  symlink to ".".  Add the version number in the derivation name.
  (locale-directory): New procedure.
  (%default-locale-libcs): New variable.
* gnu/system.scm (<operating-system>)[locale-libcs]: New field.
  (operating-system-locale-directory): Pass it to 'locale-directory'.
* doc/guix.texi (operating-system Reference): Document 'locale-libcs'.
  (Locales)[Locale Data Compatibility Considerations]: New section.
doc/guix.texi
gnu/system.scm
gnu/system/locale.scm