From 86cf4c039631cdf15c4c428bf4ffe52d6cbd7d4c Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe Date: Thu, 28 Jan 2021 08:56:27 +0100 Subject: gnu: postgresql: Set default socket directory. * gnu/packages/databases.scm (postgresql)[arguments]: Add 'set-socket-dir phase. Signed-off-by: Mathieu Othacehe --- gnu/packages/databases.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index e3fc0c7ee8..78c1ee75cd 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"))) -- cgit v1.2.3