all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH 1/2] gnu: postgresql: Substitute hard coded "/bin/sh".
@ 2016-03-24 17:54 John Darrington
  2016-03-24 18:18 ` Thompson, David
  0 siblings, 1 reply; 5+ messages in thread
From: John Darrington @ 2016-03-24 17:54 UTC (permalink / raw)
  To: guix-devel; +Cc: John Darrington

* 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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-25  7:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-24 17:54 [PATCH 1/2] gnu: postgresql: Substitute hard coded "/bin/sh" John Darrington
2016-03-24 18:18 ` Thompson, David
2016-03-24 21:12   ` [PATCH] " John Darrington
2016-03-24 21:24     ` Ricardo Wurmus
2016-03-25  7:29       ` John Darrington

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.