diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-07-17 23:28:59 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-07-17 23:41:36 +0200 |
commit | 6d833b13b77f6b4fb76acab932fd9cec601b71ac (patch) | |
tree | e2cc52a65d50b2d89662bb0aeca5f75afa8a11ce /gnu/system | |
parent | 578dfbe07bcd1bdef9129c6ce8529332a0abcba6 (diff) | |
download | guix-6d833b13b77f6b4fb76acab932fd9cec601b71ac.tar guix-6d833b13b77f6b4fb76acab932fd9cec601b71ac.tar.gz |
gnu: Remove glibc@2.21 and its traces.
* 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.
Diffstat (limited to 'gnu/system')
-rw-r--r-- | gnu/system/locale.scm | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/gnu/system/locale.scm b/gnu/system/locale.scm index 51482879f7..2ee834d9fd 100644 --- a/gnu/system/locale.scm +++ b/gnu/system/locale.scm @@ -22,7 +22,6 @@ #:use-module (guix monads) #:use-module (guix records) #:use-module (guix packages) - #:use-module (guix utils) #:use-module (gnu packages base) #:use-module (gnu packages compression) #:use-module (srfi srfi-26) @@ -85,15 +84,6 @@ or #f on failure." (define* (localedef-command locale #:key (libc (canonical-package glibc))) "Return a gexp that runs 'localedef' from LIBC to build LOCALE." - (define (maybe-version-directory) - ;; XXX: For libc prior to 2.22, GuixSD did not store locale data in a - ;; version-specific sub-directory. Check whether this is the case. - ;; TODO: Remove this hack once libc 2.21 is buried. - (let ((version (package-version libc))) - (if (version>=? version "2.22") - (list version "/") - '()))) - #~(begin (format #t "building locale '~a'...~%" #$(locale-definition-name locale)) @@ -102,7 +92,7 @@ or #f on failure." "-i" #$(locale-definition-source locale) "-f" #$(locale-definition-charset locale) (string-append #$output "/" - #$@(maybe-version-directory) + #$(package-version libc) "/" #$(locale-definition-name locale)))))) (define* (single-locale-directory locales @@ -119,12 +109,7 @@ of LIBC." #~(begin (mkdir #$output) - ;; XXX: For libcs < 2.22, locale data is stored in the top-level - ;; directory. - ;; TODO: Remove this hack once libc 2.21 is buried. - #$(if (version>=? version "2.22") - #~(mkdir (string-append #$output "/" #$version)) - #~(symlink "." (string-append #$output "/" #$version))) + (mkdir (string-append #$output "/" #$version)) ;; 'localedef' executes 'gzip' to access compressed locale sources. (setenv "PATH" (string-append #$gzip "/bin")) |