Subject: bug#27256: closed (Re: bug#27256: [PATCH] gnu: postgresql: Enable contributed extensions.)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 20 Jul 2017 11:13:02 +0000

Your bug report

#27256: [PATCH] gnu: postgresql: Enable contributed extensions.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
27256: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=27256
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#27256: [PATCH] gnu: postgresql: Enable contributed extensions.
From: Danny Milosavljevic <[email-masked]>
To: [email-masked] (Ludovic Courtès)
Cc: [email-masked], Roel Janssen <[email-masked]>
Date: Thu, 20 Jul 2017 13:11:57 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Ludo,

I think I did.  Does it show up for you?

commit b7aa3f5d2e04800b60ece895c88dd753d2c3dfcc
Author: Danny Milosavljevic <[email-masked]>
Date:   Mon Jun 5 18:18:06 2017 +0200

    gnu: postgresql: Enable contributed extensions.
    
    * gnu/packages/databases.scm (postgresql)[arguments]: Add "build-contrib",
    "install-contrib" phases.  Add configure-flags.
    [inputs]: Add libuuid.

Subject: [PATCH] gnu: postgresql: Enable contributed extensions.
From: Danny Milosavljevic <[email-masked]>
To: [email-masked]
Cc: Danny Milosavljevic <[email-masked]>
Date: Mon, 5 Jun 2017 18:18:06 +0200
List-Id: <debbugs-submit.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")