me
/
guix
Archived
1
0
Fork 0

distro: gettext: Fix references to /bin/sh.

* distro/packages/gettext.scm (gettext): Add `patch-tests' phase.
master
Ludovic Courtès 2013-01-02 21:17:46 +01:00
parent a974a0be5b
commit 2aa4fb5f73
1 changed files with 14 additions and 1 deletions

View File

@ -37,7 +37,20 @@
"1sa3ch12qxa4h3ya6hkz119yclcccmincl9j20dhrdx5mykp3b4k"))))
(build-system gnu-build-system)
(arguments
`(#:patches (list (assoc-ref %build-inputs "patch/gets"))))
`(#:patches (list (assoc-ref %build-inputs "patch/gets"))
#:phases (alist-cons-before
'check 'patch-tests
(lambda* (#:key inputs #:allow-other-keys)
(let ((bash (assoc-ref inputs "bash")))
(substitute* (find-files "gettext-tools/tests"
"^msgexec-[0-9]")
(("#![[:blank:]]/bin/sh")
(format #f "#!~a/bin/sh" bash)))
(substitute* (find-files "gettext-tools/gnulib-tests"
"posix_spawn")
(("/bin/sh")
(format #f "~a/bin/bash" bash)))))
%standard-phases)))
(inputs
`(("patch/gets"
,(search-patch "gettext-gets-undeclared.patch"))))