me
/
guix
Archived
1
0
Fork 0

gnu: gmime: Use ISO-8859-1 when patching tests.

* gnu/packages/mail.scm (gmime)[arguments]: Use ISO-8859-1 when patching
  tests.
master
Mark H Weaver 2015-03-07 01:09:55 -05:00
parent dde7092656
commit 93c117eec3
1 changed files with 10 additions and 8 deletions

View File

@ -227,14 +227,16 @@ operating systems.")
(alist-cons-after (alist-cons-after
'unpack 'patch-paths-in-tests 'unpack 'patch-paths-in-tests
(lambda _ (lambda _
;; The test programs run several programs using 'system' ;; The test programs run several programs using 'system' with
;; with hard-coded paths. Here we patch them all. We also ;; hard-coded paths. Here we patch them all. We also change "gpg"
;; change "gpg" to "gpg2". ;; to "gpg2". We use ISO-8859-1 here because test-iconv.c contains
(substitute* (find-files "tests" "\\.c$") ;; raw byte sequences in several different encodings.
(("(system *\\(\")(/[^ ]*)" all pre prog-path) (with-fluids ((%default-port-encoding #f))
(let* ((base (basename prog-path)) (substitute* (find-files "tests" "\\.c$")
(prog (which (if (string=? base "gpg") "gpg2" base)))) (("(system *\\(\")(/[^ ]*)" all pre prog-path)
(string-append pre (or prog (error "not found: " base))))))) (let* ((base (basename prog-path))
(prog (which (if (string=? base "gpg") "gpg2" base))))
(string-append pre (or prog (error "not found: " base))))))))
%standard-phases))) %standard-phases)))
(home-page "http://spruce.sourceforge.net/gmime/") (home-page "http://spruce.sourceforge.net/gmime/")
(synopsis "MIME message parser and creator library") (synopsis "MIME message parser and creator library")