Skip to content
Snippets Groups Projects
Commit dd213082 authored by John Darrington's avatar John Darrington
Browse files

gnu: postgresql: Substitute hard coded "/bin/sh".

* gnu/packages/databses.scm (postgresql): substitute /bin/sh
with location of bash binary.
parent 43a58615
No related branches found
No related tags found
No related merge requests found
...@@ -283,6 +283,16 @@ (define-public postgresql ...@@ -283,6 +283,16 @@ (define-public postgresql
(base32 (base32
"1ljvijaja5zy4i5b1450drbj8m3fcm3ly1zzaakp75x30s2rsc3b")))) "1ljvijaja5zy4i5b1450drbj8m3fcm3ly1zzaakp75x30s2rsc3b"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'configure 'patch-/bin/sh
(lambda _
;; Refer to the actual shell.
(substitute* '("src/bin/pg_ctl/pg_ctl.c"
"src/bin/psql/command.c")
(("/bin/sh") (which "sh")))
#t)))))
(inputs (inputs
`(("readline" ,readline) `(("readline" ,readline)
("zlib" ,zlib))) ("zlib" ,zlib)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment