guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: gawk: Build a UTF-8 locale for the tests.


From: Ludovic Courtès
Subject: 01/01: gnu: gawk: Build a UTF-8 locale for the tests.
Date: Wed, 26 Nov 2014 22:34:46 +0000

civodul pushed a commit to branch core-updates
in repository guix.

commit e9bab1df6d4c71f9617362c2bd8babe61dec759d
Author: Ludovic Courtès <address@hidden>
Date:   Wed Nov 26 23:34:34 2014 +0100

    gnu: gawk: Build a UTF-8 locale for the tests.
    
    * gnu/packages/gawk.scm (gawk)[arguments]: Add 'install-locales' phase.
---
 gnu/packages/gawk.scm |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/gnu/packages/gawk.scm b/gnu/packages/gawk.scm
index 1050619..996be7a 100644
--- a/gnu/packages/gawk.scm
+++ b/gnu/packages/gawk.scm
@@ -64,7 +64,17 @@
                           '((substitute* "extension/configure"
                               (("/usr/bin/file") (which "file"))))
                           '())))
-                %standard-phases)))
+
+                (alist-cons-before
+                 'check 'install-locales
+                 (lambda _
+                   ;; A bunch of tests require the availability of a UTF-8
+                   ;; locale and otherwise fail.  Give them what they want.
+                   (setenv "LOCPATH" (getcwd))
+                   (zero? (system* "localedef" "--no-archive"
+                                   "--prefix" (getcwd) "-i" "en_US"
+                                   "-f" "UTF-8" "./en_US.UTF-8")))
+                 %standard-phases))))
    (inputs `(("libsigsegv" ,libsigsegv)
 
              ,@(if (%current-target-system)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]