gnu: gawk: Build a UTF-8 locale for the tests.
* gnu/packages/gawk.scm (gawk)[arguments]: Add 'install-locales' phase.
This commit is contained in:
parent
094b2efc3c
commit
e9bab1df6d
|
@ -64,7 +64,17 @@
|
||||||
'((substitute* "extension/configure"
|
'((substitute* "extension/configure"
|
||||||
(("/usr/bin/file") (which "file"))))
|
(("/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)
|
(inputs `(("libsigsegv" ,libsigsegv)
|
||||||
|
|
||||||
,@(if (%current-target-system)
|
,@(if (%current-target-system)
|
||||||
|
|
Loading…
Reference in New Issue