[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27256: [PATCH] gnu: postgresql: Enable contributed extensions.
From: |
Roel Janssen |
Subject: |
bug#27256: [PATCH] gnu: postgresql: Enable contributed extensions. |
Date: |
Tue, 06 Jun 2017 00:42:30 +0200 |
User-agent: |
mu4e 0.9.18; emacs 25.1.1 |
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=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")
LGTM!
Kind regards,
Roel Janssen