From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHuih-00061W-Es for guix-patches@gnu.org; Mon, 05 Jun 2017 12:19:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHuic-0008Ow-Fi for guix-patches@gnu.org; Mon, 05 Jun 2017 12:19:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:55267) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dHuic-0008Os-Bu for guix-patches@gnu.org; Mon, 05 Jun 2017 12:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dHuic-0003Cd-6W for guix-patches@gnu.org; Mon, 05 Jun 2017 12:19:02 -0400 Subject: bug#27256: [PATCH] gnu: postgresql: Enable contributed extensions. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43287) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHuhv-0005vB-AA for guix-patches@gnu.org; Mon, 05 Jun 2017 12:18:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHuhq-0007nF-BS for guix-patches@gnu.org; Mon, 05 Jun 2017 12:18:19 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:38452) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dHuhq-0007m9-5B for guix-patches@gnu.org; Mon, 05 Jun 2017 12:18:14 -0400 From: Danny Milosavljevic Date: Mon, 5 Jun 2017 18:18:06 +0200 Message-Id: <20170605161806.23379-1-dannym@scratchpost.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 27256@debbugs.gnu.org * gnu/packages/databases.scm (postgresql)[arguments]: Add "build-contrib", "install-contrib" phases. Add configure-flags. [inputs]: Add libuuid. --- gnu/packages/databases.scm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index c46e917b8..963d209a4 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -459,7 +459,8 @@ as a drop-in replacement of MySQL.") "1imrjp4vfslxj5rrvphcrrk21zv8kqw3gacmwradixh1d5rv6i8n")))) (build-system gnu-build-system) (arguments - `(#:phases + `(#:configure-flags '("--with-uuid=e2fs") + #:phases (modify-phases %standard-phases (add-before 'configure 'patch-/bin/sh (lambda _ @@ -467,9 +468,16 @@ as a drop-in replacement of MySQL.") (substitute* '("src/bin/pg_ctl/pg_ctl.c" "src/bin/psql/command.c") (("/bin/sh") (which "sh"))) - #t))))) + #t)) + (add-after 'build 'build-contrib + (lambda _ + (zero? (system* "make" "-C" "contrib")))) + (add-after 'install 'install-contrib + (lambda _ + (zero? (system* "make" "-C" "contrib" "install"))))))) (inputs `(("readline" ,readline) + ("libuuid" ,util-linux) ("zlib" ,zlib))) (home-page "https://www.postgresql.org/") (synopsis "Powerful object-relational database system")