pkgsrc/www/ocsigen-start/patches/patch-template.distillery_Makefile.db

15 lines
591 B
Text
Raw Normal View History

$NetBSD: patch-template.distillery_Makefile.db,v 1.1 2018/06/06 09:45:01 jaapb Exp $
Avoid error with wrongly set locale in template
--- template.distillery/Makefile.db.orig 2018-03-09 16:47:43.000000000 +0000
+++ template.distillery/Makefile.db
@@ -98,7 +98,7 @@ $(PSQL_DIR):
ifeq ($(LOCAL),yes)
db-init: $(PSQL_DIR)
- $(pg_ctl) initdb -o --encoding=UNICODE -D $(PSQL_DIR)
+ $(pg_ctl) initdb -o "--encoding=UNICODE --no-locale" -D $(PSQL_DIR)
echo unix_socket_directories = \'/tmp\' >> $(PSQL_DIR)/postgresql.conf
$(pg_ctl) -o "-p $(DB_PORT)" -D $(PSQL_DIR) -l $(PSQL_LOG) start