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>
This commit is contained in:
parent
11a7bfbc46
commit
86cf4c0396
|
@ -1217,6 +1217,12 @@ (define-public postgresql-13
|
||||||
"src/bin/psql/command.c")
|
"src/bin/psql/command.c")
|
||||||
(("/bin/sh") (which "sh")))
|
(("/bin/sh") (which "sh")))
|
||||||
#t))
|
#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
|
(add-after 'build 'build-contrib
|
||||||
(lambda _
|
(lambda _
|
||||||
(invoke "make" "-C" "contrib")))
|
(invoke "make" "-C" "contrib")))
|
||||||
|
|
Loading…
Reference in a new issue