[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: postgresql: Substitute hard coded "/bin/sh".
From: |
John Darrington |
Subject: |
01/01: gnu: postgresql: Substitute hard coded "/bin/sh". |
Date: |
Fri, 25 Mar 2016 07:28:17 +0000 |
jmd pushed a commit to branch master
in repository guix.
commit dd21308225610e7adfcbd1bfa07f72a42d7c7c35
Author: John Darrington <address@hidden>
Date: Thu Mar 24 14:23:55 2016 +0100
gnu: postgresql: Substitute hard coded "/bin/sh".
* gnu/packages/databses.scm (postgresql): substitute /bin/sh
with location of bash binary.
---
gnu/packages/databases.scm | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 6612e37..7626d3d 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -283,6 +283,16 @@ as a drop-in replacement of MySQL.")
(base32
"1ljvijaja5zy4i5b1450drbj8m3fcm3ly1zzaakp75x30s2rsc3b"))))
(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
`(("readline" ,readline)
("zlib" ,zlib)))