summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg White2020-05-24 07:34:32 -0400
committerGreg White2020-05-24 07:34:32 -0400
commitab5cb7d428f2ed2f59401668ffff64960dbebf17 (patch)
treeb544362279a1162397013351b5d31bd5a1d9aec1
parentf6f54fbe2afc746c4a586275f3741686de2a7d91 (diff)
downloadaur-ab5cb7d428f2ed2f59401668ffff64960dbebf17.tar.gz
Update for 13-beta1
-rw-r--r--PKGBUILD12
-rwxr-xr-xpostgresql-check-db-dir4
-rw-r--r--postgresql-run-socket.patch17
3 files changed, 16 insertions, 17 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3414fe8fcc1b..ed8439037a82 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
pkgbase=postgresql-src-beta
pkgname=('postgresql-src-beta-libs' 'postgresql-src-beta-docs' 'postgresql-src-beta')
-pkgver=11rc1
-_majorver=11.0
+pkgver=13beta1
+_majorver=13.0
pkgrel=8
CFLAGS=`echo $CFLAGS | sed s/-Ofast/-O3/`
CFLAGS="${CFLAGS} -flto"
@@ -20,17 +20,17 @@ source=(http://ftp.postgresql.org/pub/source/v${pkgver}/postgresql-${pkgver}.tar
postgresql.pam postgresql.logrotate
postgresql.service
postgresql-check-db-dir)
-sha256sums=('608c35369b79a40239663c4213267fd08d3184c3a2cd4d6ff71103ca61930609'
- '8538619cb8bea51078b605ad64fe22abd6050373c7ae3ad6595178da52f6a7d9'
+sha256sums=('249ba0d0227d5393b83d397f2543354bfee579276cb1e821e9b7d904a42039e1'
+ '70954ea0a5f68fa39131afa55837c0c29a0b38948030208d909e78f0ed1cc826'
'57dfd072fd7ef0018c6b0a798367aac1abb5979060ff3f9df22d1048bb71c0d5'
'6abb842764bbed74ea4a269d24f1e73d1c0b1d8ecd6e2e6fb5fb10590298605e'
'b48fe97f8e43ed0d2041d519119a4dafb70fcae72870951bf4fb7350fe169ac8'
- '7912aa25937cba9e971c071625e5117638509fe2cf4232e071d18fc53b585500')
+ '981bc15147eaec368fe92386bd208bda2af171d38299a9b89d311330e5dc0d7b')
build() {
cd "${srcdir}/postgresql-${pkgver}"
- patch -Np1 < ../postgresql-run-socket.patch
+ patch -p0 < ../postgresql-run-socket.patch
./configure \
--prefix=/usr \
diff --git a/postgresql-check-db-dir b/postgresql-check-db-dir
index 084bad1df282..95371c5eadc9 100755
--- a/postgresql-check-db-dir
+++ b/postgresql-check-db-dir
@@ -16,9 +16,9 @@ then
fi
# PGMAJORVERSION is major version
-PGMAJORVERSION=11
+PGMAJORVERSION=13
# PREVMAJORVERSION is the previous major version, e.g., 8.4, for upgrades
-PREVMAJORVERSION=9.6
+PREVMAJORVERSION=12.3
# Check for the PGDATA structure
if [ -f "$PGDATA/PG_VERSION" ] && [ -d "$PGDATA/base" ]
diff --git a/postgresql-run-socket.patch b/postgresql-run-socket.patch
index b558c7b74961..67680d65f1b2 100644
--- a/postgresql-run-socket.patch
+++ b/postgresql-run-socket.patch
@@ -1,12 +1,11 @@
-diff -Naur postgresql-9.2.0.sockets/src/include/pg_config_manual.h postgresql-9.2.0/src/include/pg_config_manual.h
---- postgresql-9.2.0.sockets/src/include/pg_config_manual.h 2012-09-06 17:26:17.000000000 -0400
-+++ postgresql-9.2.0/src/include/pg_config_manual.h 2012-09-06 18:13:18.183092471 -0400
-@@ -144,7 +144,7 @@
- * here's where to twiddle it. You can also override this at runtime
- * with the postmaster's -k switch.
+--- src/include/pg_config_manual.h 2020-05-24 07:26:31.931113200 -0400
++++ src/include/pg_config_manual.h.orig 2020-05-24 07:17:33.409105276 -0400
+@@ -201,7 +201,7 @@
+ * support them yet.
*/
+ #ifndef WIN32
-#define DEFAULT_PGSOCKET_DIR "/tmp"
+#define DEFAULT_PGSOCKET_DIR "/run/postgresql"
-
- /*
- * The random() function is expected to yield values between 0 and
+ #else
+ #define DEFAULT_PGSOCKET_DIR ""
+ #endif