From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dY7ke-0003kS-MC for guix-patches@gnu.org; Thu, 20 Jul 2017 05:28:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dY7kY-0000rk-N6 for guix-patches@gnu.org; Thu, 20 Jul 2017 05:28:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:45923) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dY7kY-0000rg-Jx for guix-patches@gnu.org; Thu, 20 Jul 2017 05:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dY7kY-0000lo-Ec for guix-patches@gnu.org; Thu, 20 Jul 2017 05:28:02 -0400 Subject: [bug#27256] [PATCH] gnu: postgresql: Enable contributed extensions. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20170605161806.23379-1-dannym@scratchpost.org> <87bmq2m4yx.fsf@gnu.org> Date: Thu, 20 Jul 2017 11:26:59 +0200 In-Reply-To: <87bmq2m4yx.fsf@gnu.org> (Roel Janssen's message of "Tue, 06 Jun 2017 00:42:30 +0200") Message-ID: <87tw27wja4.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Roel Janssen Cc: 27256@debbugs.gnu.org Roel Janssen skribis: > Danny Milosavljevic writes: > >> * 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=3De2fs") >> + #: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") > > LGTM! Danny, don=E2=80=99t forget to commit. :-) Ludo=E2=80=99.