From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Darrington Subject: [PATCH] gnu: postgresql: Substitute hard coded "/bin/sh". Date: Thu, 24 Mar 2016 22:12:24 +0100 Message-ID: <1458853944-26415-1-git-send-email-jmd@gnu.org> References: Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajCYd-0002P9-En for guix-devel@gnu.org; Thu, 24 Mar 2016 17:12:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ajCYa-0006ps-9O for guix-devel@gnu.org; Thu, 24 Mar 2016 17:12:43 -0400 In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Cc: John Darrington * gnu/packages/databses.scm (postgresql): substitute /bin/sh with location of bash binary. --- gnu/packages/databases.scm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index 25c1e6a..b67481f 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -283,6 +283,18 @@ as a drop-in replacement of MySQL.") (base32 "08ba951nfiy516flaw352shj1zslxg4ryx3w5k0adls1r682l8ix")))) (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-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"))))))))) (inputs `(("readline" ,readline) ("zlib" ,zlib))) -- 2.1.4