guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch core-updates updated: gnu: postgresql: Set default socket directo


From: guix-commits
Subject: branch core-updates updated: gnu: postgresql: Set default socket directory.
Date: Thu, 28 Jan 2021 07:02:44 -0500

This is an automated email from the git hooks/post-receive script.

mothacehe pushed a commit to branch core-updates
in repository guix.

The following commit(s) were added to refs/heads/core-updates by this push:
     new 86cf4c0  gnu: postgresql: Set default socket directory.
86cf4c0 is described below

commit 86cf4c039631cdf15c4c428bf4ffe52d6cbd7d4c
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Thu Jan 28 08:56:27 2021 +0100

    gnu: postgresql: Set default socket directory.
    
    * gnu/packages/databases.scm (postgresql)[arguments]: Add 'set-socket-dir
    phase.
    
    Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
 gnu/packages/databases.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index e3fc0c7..78c1ee7 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -1217,6 +1217,12 @@ developed in C/C++ to MariaDB and MySQL databases.")
                                       "src/bin/psql/command.c")
                          (("/bin/sh") (which "sh")))
                        #t))
+         (add-before 'configure 'set-socket-dir
+           (lambda _
+             (substitute* '("src/include/pg_config_manual.h")
+               (("DEFAULT_PGSOCKET_DIR[^\n]*")
+                "DEFAULT_PGSOCKET_DIR \"/var/run/postgresql\""))
+             #t))
          (add-after 'build 'build-contrib
            (lambda _
              (invoke "make" "-C" "contrib")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]