[arch-commits] Commit in postgresql/trunk (PKGBUILD postgresql.install)
Levente Polyak
anthraxx at archlinux.org
Sat May 15 18:40:04 UTC 2021
Date: Saturday, May 15, 2021 @ 18:40:04
Author: anthraxx
Revision: 415546
upgpkg: postgresql 13.3-1: add warn about db upgrade and logrotate optdepends
- FS#69211 Warn about a required db upgrade in post_upgrade
- FS#64257 optional dependency on logrotate
Added:
postgresql/trunk/postgresql.install
Modified:
postgresql/trunk/PKGBUILD
--------------------+
PKGBUILD | 14 ++++++++------
postgresql.install | 7 +++++++
2 files changed, 15 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-15 18:20:32 UTC (rev 415545)
+++ PKGBUILD 2021-05-15 18:40:04 UTC (rev 415546)
@@ -3,9 +3,9 @@
pkgbase=postgresql
pkgname=('postgresql-libs' 'postgresql-docs' 'postgresql')
-pkgver=13.2
+pkgver=13.3
_majorver=${pkgver%.*}
-pkgrel=2
+pkgrel=1
pkgdesc='Sophisticated object-relational DBMS'
url='https://www.postgresql.org/'
arch=('x86_64')
@@ -21,7 +21,7 @@
postgresql-check-db-dir
postgresql.sysusers
postgresql.tmpfiles)
-sha256sums=('5fd7fcd08db86f5b2aed28fcfaf9ae0aca8e9428561ac547764c2a2b0f41adfc'
+sha256sums=('3cd9454fa8c7a6255b6743b767700925ead1b9ab0d7a0f9dcb1151010f8eb4a1'
'02ffb53b0a5049233f665c873b96264db77daab30e5a2194d038202d815a8e6a'
'af6186d40128e043f333da4591455bf62b7c96e80214835f5c8c60b635ea9afb'
'57dfd072fd7ef0018c6b0a798367aac1abb5979060ff3f9df22d1048bb71c0d5'
@@ -30,7 +30,7 @@
'7db9626c322928b2465aa126b48ba7f0eebd366bf2aa19c9c0a92b488cb469c5'
'7fa8f0ef3f9d40abd4749cc327c2f52478cb6dfb6e2405bd0279c95e9ff99f12'
'4a4c0bb9ceb156cc47e9446d8393d1f72b4fe9ea1d39ba17213359df9211da57')
-b2sums=('982feffdd98d3f519ff1e790d35ac828710d3ca6cbf935a78bf04011dbc12b4523b451bc7f2421a788a709d1746b2cca9135842bfc1d5048ef5951ed48b20b6a'
+b2sums=('395a3dc5cde8f579a3c35ea70346bdc630a8e8f2f86f310a5e4f4a1f6177dab7e78ba6e41c384ba650eb86813fcd428fea8aa22481f9a494cd80aa94bd7b52dd'
'71dc1b4e41294fd235db05317c991d42de082c49d38a2f97d1394572a93a4aa77f42ec29b4e6cf0a17adb3a4471afcb1e2464870f2b9e847906bf49541763a53'
'5135c5f9dafe427de8d3740d4a67c6dba2869be47dc52b4190b8aa1148e702992fde1821371b68e93b224f5805f697d490ea28ec80d7ce55e5a224551b0a6247'
'3eab84d332d96678fe6e435ee243c8f1a82b838f601d61d3604d11e918aed7a62202edca5e476c4b9031ed284570e6fcd6c659cfdbd9624aa0019d3233755f81'
@@ -95,7 +95,7 @@
_postgres_check() {
make "${1}" || (find . -name regression.diffs | \
while read -r line; do
- error "make ${1} failure: ${line}"
+ echo "make ${1} failure: ${line}"
cat "${line}"
done; exit 1)
}
@@ -171,8 +171,10 @@
'python: for PL/Python 3 support'
'perl: for PL/Perl support'
'tcl: for PL/Tcl support'
- 'postgresql-old-upgrade: upgrade from previous major version using pg_upgrade')
+ 'postgresql-old-upgrade: upgrade from previous major version using pg_upgrade'
+ 'logrotate: rotates system logs automatically')
options=('staticlibs')
+ install=postgresql.install
cd postgresql-${pkgver}
Added: postgresql.install
===================================================================
--- postgresql.install (rev 0)
+++ postgresql.install 2021-05-15 18:40:04 UTC (rev 415546)
@@ -0,0 +1,7 @@
+post_upgrade() {
+ # Prints the warning message if the database version on disk
+ # does not match the PostgreSQL major version.
+ if [ -d /var/lib/postgres/data ]; then
+ /usr/bin/postgresql-check-db-dir /var/lib/postgres/data || true
+ fi
+}
More information about the arch-commits
mailing list