From 4398b671d2075ef9664c598b1408ae5b28414098 Mon Sep 17 00:00:00 2001 From: Juan Gonzalez Date: Wed, 30 May 2018 16:25:19 +0200 Subject: [PATCH 1/2] Correction to how libreadline is pulled in on linux when building postgresql --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index d6359e7..f652918 100644 --- a/build.sh +++ b/build.sh @@ -98,7 +98,8 @@ if [ ! -f "$POSTGRESQL_DIR/$POSTGRESQL_OUT/bin/psql" ]; then # Configures make for libreadline7 on linux, without for Darwin if [ ! "$(uname -s)" == "Darwin" ]; then - exec_cmd "./configure --prefix=$(pwd)/$POSTGRESQL_OUT --with-libs=../$LIBREADLINE_DIR/out/lib --with-includes=../$LIBREADLINE_DIR/out/include" + exec_cmd "./configure --prefix=$(pwd)/$POSTGRESQL_OUT --with-libraries=$(pwd)/../$LIBREADLINE_DIR/out/lib --with-includes=$(pwd)/../$LIBREADLINE_DIR/out/include" + exec_cmd "make" else exec_cmd "./configure --prefix=$(pwd)/$POSTGRESQL_OUT" fi From d4da2182fc94a062c648b5c49a69779ab0170f23 Mon Sep 17 00:00:00 2001 From: Juan Gonzalez Date: Sun, 10 Jun 2018 13:12:02 +0000 Subject: [PATCH 2/2] Upgrade Postgresql to 9.6.8 --- build.sh | 1 - config.sh | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index f652918..90bef53 100644 --- a/build.sh +++ b/build.sh @@ -104,7 +104,6 @@ if [ ! -f "$POSTGRESQL_DIR/$POSTGRESQL_OUT/bin/psql" ]; then exec_cmd "./configure --prefix=$(pwd)/$POSTGRESQL_OUT" fi - exec_cmd "make --jobs=$JOBS" exec_cmd "make install" # Compiles the pgcrypto extension diff --git a/config.sh b/config.sh index 9c7e1ec..ec68045 100644 --- a/config.sh +++ b/config.sh @@ -46,9 +46,9 @@ NODE_URL="https://nodejs.org/download/release/v6.12.3/$NODE_FILE" NODE_OUT="compiled" NODE_CONFIG="" -POSTGRESQL_DIR="postgresql-9.6.6" +POSTGRESQL_DIR="postgresql-9.6.8" POSTGRESQL_FILE="$POSTGRESQL_DIR.tar.gz" -POSTGRESQL_URL="https://ftp.postgresql.org/pub/source/v9.6.6/$POSTGRESQL_FILE" +POSTGRESQL_URL="https://ftp.postgresql.org/pub/source/v9.6.8/$POSTGRESQL_FILE" POSTGRESQL_OUT="pgsql" SODIUM_DIR="libsodium-1.0.11"