aboutsummaryrefslogtreecommitdiff
path: root/gnu/system/locale.scm
Commit message (Collapse)AuthorAge
* locale: Shrink ‘%default-locale-definitions’ from 34 to 10 locales.Ludovic Courtès2024-04-29
| | | | | | | | | This reduces the default set of locales from 92 MiB to 28 MiB. * gnu/system/locale.scm (%default-locale-definitions): Reduce to 10 locales. Change-Id: I3c092604301d69db591957bcfd62a062c3ac5ab0
* system: Remove ‘glibc-2.33’ from ‘%default-locale-libcs’.Ludovic Courtès2024-04-29
| | | | | | | | | | | | | The transition from glibc 2.33 to 2.35 was done in c919bfefd98bf2e29549539b4e28e6dc2a8a6f32 (one year ago), so we can assume that the backward-compatible locales are no longer needed by default. This removes 92 MiB from the system closure. * gnu/system/locale.scm (%default-locale-libcs): Remove GLIBC-2.33. Change-Id: I85948bbe6b2d424f9f158eeafdb5543688c66c6b
* locale: Set %default-locale-definitions to glibc/hurd on the Hurd.Janneke Nieuwenhuizen2023-09-16
| | | | | * gnu/system/locale.scm (%default-locale-libcs): Use only glib/hurd when building on the Hurd.
* locale: Add glibc 2.33 to '%default-locale-libcs'.Ludovic Courtès2023-04-19
| | | | | | | Fixes <https://issues.guix.gnu.org/62934>. Reported by Brian Cully <bjc@spork.org>. * gnu/system/locale.scm (%default-locale-libcs): Add GLIBC-2.33.
* system: locale: Use only the current glibc.Mathieu Othacehe2022-01-14
| | | | * gnu/system/locale.scm (%default-locale-libcs): Remove glibc-2.31.
* Merge branch 'master' into core-updatesLudovic Courtès2021-05-15
|\
| * locale: Remove glibc 2.29 from '%default-locale-libcs'.Ludovic Courtès2021-05-04
| | | | | | | | | | | | | | | | | | | | | | Having 2.29 is most likely no longer justified. Removing it reduces the closure size returned by: guix size $(guix system build gnu/system/install.scm) from 1.6G to 1.5G. * gnu/system/locale.scm (%default-locale-libcs): Remove GLIBC-2.29.
* | gnu: glibc: Add version 2.31.Ludovic Courtès2020-09-20
| | | | | | | | | | * gnu/packages/base.scm (glibc-2.31): New variable. * gnu/system/locale.scm (%default-locale-libcs): Add it.
* | system: locale: Only use the current glibc.Mathieu Othacehe2020-08-26
|/ | | | | | | Only use the current glibc, as adding glibc-2.29 for compatibility adds ~100MiB to the barebones system closure. * gnu/system/locale.scm (%default-locale-libcs): Remove glibc-2.29.
* locale: Use the native gzip and libc when building locales.Ludovic Courtès2020-05-15
| | | | | | | This fixes system cross-compilation. * gnu/system/locale.scm (single-locale-directory)[build]: Use the native GZIP and LIBC.
* locale: Add glibc 2.29 to '%default-locale-libcs'.Ludovic Courtès2020-05-03
| | | | | | | This eases transition for anyone reconfiguring and still having profiles with packages using the former libc. * gnu/system/locale.scm (%default-locale-libcs): Add GLIBC-2.29.
* system: locale: Remove canonical-package call.Mathieu Othacehe2020-02-12
| | | | | | | | This is a follow-up of dfc8ccbf5da96a67eb1cade499f0def21e7fdb02. Building locales using the same glibc as the one programs are linked against is enough. * gnu/system/locale.scm (%default-locale-libcs): Use the plain glibc package.
* system: Stop using canonical-package.Mathieu Othacehe2020-02-11
| | | | | | | | | | | | | | Usage of canonical-package outside of thunked fields breaks cross-compilation, see: https://lists.gnu.org/archive/html/guix-devel/2019-12/msg00410.html. * gnu/installer.scm (installer-program): Remove canonical-package. * gnu/services/base.scm (<nscd-cache>): Ditto, (%base-services): ditto. * gnu/services/xorg.scm: Remove useless canonical-package import. * gnu/system.scm (%base-packages): Remove canonical-package. * gnu/system/install.scm (%installation-services): Ditto, (installation-os): ditto. * gnu/system/locale.scm (single-locale-directory): Ditto.
* Add (gnu build locale).Ludovic Courtès2019-06-07
| | | | | | | | | | * gnu/build/locale.scm: New file. * gnu/local.mk (MODULES_NOT_COMPILED): Add it. * gnu/installer/locale.scm (normalize-codeset): Remove. * gnu/system/locale.scm (localedef-command): Remove. (single-locale-directory): Use (gnu build locale). (glibc-supported-locales)[build]: Likewise, and remove 'read-supported-locales'.
* locale: Add 'glibc-supported-locales'.Ludovic Courtès2019-05-13
| | | | * gnu/system/locale.scm (glibc-supported-locales): New procedure.
* system: Put locales where libc will find them.Mark H Weaver2018-01-24
| | | | | * gnu/system/locale.scm (localedef-command, single-locale-directory): Use only the major+minor part of the libc version number in the locale directory name.
* locale: Demonadify the locale creation API.Ludovic Courtès2017-07-17
| | | | | | | | * gnu/system/locale.scm (single-locale-directory): Use 'computed-file' instead of 'gexp->derivation'. (locale-directory): Adjust accordingly and do the same. * gnu/system.scm (operating-system-directory-base-entries): Adjust accordingly.
* gnu: Remove glibc@2.21 and its traces.Ludovic Courtès2017-07-17
| | | | | | | * gnu/packages/base.scm (glibc-2.21): Remove. * gnu/system/locale.scm (localedef-command)[maybe-version-directory]: Remove. Replace call with use of 'package-version'. (single-locale-directory): Remove 'version>=' conditional.
* system: Refer to native packages when appropriate.Ludovic Courtès2017-07-11
| | | | | * gnu/system/locale.scm (localedef-command): Use the native LIBC. * gnu/system/shadow.scm (default-skeletons): Use the native GUILE-WM.
* gnu: Switch to 'with-imported-modules'.Ludovic Courtès2016-07-12
| | | | | | | | | | | | | | | | | | | | | | | | * gnu/services.scm (directory-union): Use 'with-imported-modules' instead of the '#:modules' argument of 'computed-file'. * gnu/services/base.scm (udev-rules-union): Likewise. * gnu/services/dbus.scm (system-service-directory): Likewise. * gnu/services/desktop.scm (wrapped-dbus-service): (polkit-directory): Likewise. * gnu/services/networking.scm (tor-configuration->torrc): Likewise. * gnu/services/xorg.scm (xorg-configuration-directory): Likewise. * gnu/system/install.scm (self-contained-tarball): Likewise. * gnu/system/linux-container.scm (container-script): Likewise. * gnu/system/linux-initrd.scm (expression->initrd): Likewise, and remove #:modules parameter. (flat-linux-module-directory): Use 'with-imported-modules'. (base-initrd): Likewise. * gnu/system/locale.scm (locale-directory): Likewise. * gnu/system/shadow.scm (default-skeletons): Likewise. * gnu/system/vm.scm (expression->derivation-in-linux-vm): Likewise. * gnu/tests/base.scm (run-basic-test): Likewise. * gnu/tests/install.scm (run-install): Likewise. * doc/guix.texi (Initial RAM Disk): Update 'expression->initrd' documentation.
* system: Selected locale is automatically built.Ludovic Courtès2016-02-10
| | | | | | | | | | | | Fixes <http://bugs.gnu.org/22572>. Reported by Mark H Weaver <mhw@netris.org>. * gnu/system/locale.scm (%not-dot): New variable. (denormalize-codeset, locale-name->definition): New procedures. * gnu/system.scm (locale-name->definition*): New procedure. (operating-system-locale-directory): Instead of raising an error, add the missing locale. * doc/guix.texi (Locales): Adjust accordingly.
* system: Add 'locale-libcs' field.Ludovic Courtès2015-10-30
| | | | | | | | | | | | | | | | * 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.
* gnu: libc: Look for locale data under /run/current-system/locale/X.Y.Ludovic Courtès2015-09-30
| | | | | | | | | * gnu/packages/base.scm (glibc)[arguments]: Append VERSION to 'libc_cv_localedir'. * gnu/system/locale.scm (localedef-command): Write to the sub-directory called (package-version libc) in #$output. (locale-directory): Create said directory. * doc/guix.texi (Locales): Mention the per-version sub-directory.
* doc: Mention the "normalized codeset" used in locale names.Ludovic Courtès2015-08-29
| | | | | | | | * doc/guix.texi (Locales): Introduce "codeset". <%default-locale-definitions>: Mention the "normalized codeset", with an xref to libc's manual. * gnu/system/locale.scm (%default-locale-definitions)[utf8-locale]: Mention the "normalized codeset" in a comment.
* system: Add "en_US.UTF-8" to the default locales, for backward compatibility.Ludovic Courtès2015-01-16
| | | | | * gnu/system/locale.scm (%default-locale-definitions): Add "en_US.UTF-8".
* system: locale: Fix typo in docstring.Alex Kost2014-11-30
| | | | * gnu/system/locale.scm (localedef-command): Fix typo.
* system: Build system-wide locale definitions.Ludovic Courtès2014-11-27
* gnu/system/locale.scm: New file. * gnu-system.am (GNU_SYSTEM_MODULES): Add it. * gnu/system.scm (<operating-system>)[locale]: Change the default to "en_US.utf8". (operating-system-locale-directory): New procecure. (operating-system-derivation): Use it. * doc/guix.texi (Using the Configuration System): Change example locale to "fr_FR.utf8". (operating-system Reference): Add xref to "Locales". Document 'locale-definitions'. (Locales): New section. * po/guix/POTFILES.in: Add gnu/system.scm.