Browse Source

gnu: zsh: Use ISO-8859-1 in 'fix-sh' phase.

* gnu/packages/zsh.scm (zsh)[arguments]: Use ISO-8859-1 in 'fix-sh' phase.
gn-latest-20200428
Mark H Weaver 6 years ago
parent
commit
526d71b303
1 changed files with 16 additions and 14 deletions
  1. +16
    -14
      gnu/packages/zsh.scm

+ 16
- 14
gnu/packages/zsh.scm View File

@ -41,20 +41,22 @@
#:phases (alist-cons-before
'configure 'fix-sh
(lambda _
(substitute*
'("configure"
"configure.ac"
"Src/exec.c"
"Src/mkmakemod.sh"
"Config/installfns.sh"
"Config/defs.mk.in"
"Test/E01options.ztst"
"Test/A05execution.ztst"
"Test/A01grammar.ztst"
"Test/B02typeset.ztst"
"Completion/Unix/Command/_init_d"
"Util/preconfig")
(("/bin/sh") (which "sh"))))
;; Some of the files are ISO-8859-1 encoded.
(with-fluids ((%default-port-encoding #f))
(substitute*
'("configure"
"configure.ac"
"Src/exec.c"
"Src/mkmakemod.sh"
"Config/installfns.sh"
"Config/defs.mk.in"
"Test/E01options.ztst"
"Test/A05execution.ztst"
"Test/A01grammar.ztst"
"Test/B02typeset.ztst"
"Completion/Unix/Command/_init_d"
"Util/preconfig")
(("/bin/sh") (which "sh")))))
%standard-phases)))
(native-inputs `(("autoconf", autoconf)))
(inputs `(("ncurses", ncurses)


Loading…
Cancel
Save