[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/2] gnu: postgresql: Substitute hard coded "/bin/sh".
From: |
John Darrington |
Subject: |
[PATCH 1/2] gnu: postgresql: Substitute hard coded "/bin/sh". |
Date: |
Thu, 24 Mar 2016 18:54:50 +0100 |
* gnu/packages/databses.scm (postgresql): substitute /bin/sh
with location of bash binary.
---
gnu/packages/databases.scm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 25c1e6a..ff68d6f 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -283,6 +283,17 @@ as a drop-in replacement of MySQL.")
(base32
"08ba951nfiy516flaw352shj1zslxg4ryx3w5k0adls1r682l8ix"))))
(build-system gnu-build-system)
+ (arguments
+ '(#:phases (alist-cons-before
+ 'configure 'patch-/bin/sh
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((bash (assoc-ref inputs "bash")))
+ ;; Refer to the actual shell.
+ (substitute* '("src/bin/pg_ctl/pg_ctl.c"
+ "src/bin/psql/command.c")
+ (("/bin/sh")
+ (string-append bash "/bin/sh")))))
+ %standard-phases)))
(inputs
`(("readline" ,readline)
("zlib" ,zlib)))
--
2.1.4
- [PATCH 1/2] gnu: postgresql: Substitute hard coded "/bin/sh".,
John Darrington <=