Accepting request 725929 from home:bruno_friedmann:branches:server:database:postgresql

- Update to 2.16 release C Migrations and Bug Fixes
- Packaging adding new libpq-fe dependency
- Added patch libpq-fe.h_localisation.patch

- Update to 2.15.1 release
- Packaging export %optflag as CFLAG

OBS-URL: https://build.opensuse.org/request/show/725929
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/pgbackrest?expand=0&rev=25
This commit is contained in:
Martin Pluskal 2019-08-26 01:23:36 +00:00 committed by Git OBS Bridge
parent c4960e15a4
commit 25542b8f46
5 changed files with 62 additions and 5 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5e1ea542682345b0cec9d47abb7ce5a39963e1221777f5afdab074af5a4000ac
size 6389098

3
2.16.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9c2aff14e020ade9f3a8120bfc495c762793651c59361e51a7b372a98175c564
size 5251132

View File

@ -0,0 +1,12 @@
diff -rup a/src/postgres/client.c b/src/postgres/client.c
--- a/src/postgres/client.c 2019-08-05 18:03:04.000000000 +0200
+++ b/src/postgres/client.c 2019-08-24 18:28:37.708798692 +0200
@@ -3,7 +3,7 @@ Postgres Client
***********************************************************************************************************************************/
#include "build.auto.h"
-#include <libpq-fe.h>
+#include <pgsql/libpq-fe.h>
#include "common/debug.h"
#include "common/log.h"

View File

@ -1,3 +1,41 @@
-------------------------------------------------------------------
Sat Aug 24 16:31:39 UTC 2019 - Bruno Friedmann <bruno@ioda-net.ch>
- Update to 2.16 release C Migrations and Bug Fixes
+ Bug Fixes:
- Retry S3 RequestTimeTooSkewed errors instead of immediately
terminating.
- Fix incorrect handling of transfer-encoding response to HEAD
request.
- Fix scoping violations exposed by optimizations in gcc 9.
+ Features:
- Add repo-s3-port option for setting a non-standard S3
service port.
+ Improvements:
- The local command for backup is implemented entirely in C.
- The check command is implemented partly in C.
- Packaging adding new libpq-fe dependency
- Added patch libpq-fe.h_localisation.patch
-------------------------------------------------------------------
Thu Jul 11 12:09:42 UTC 2019 - Bruno Friedmann <bruno@ioda-net.ch>
- Update to 2.15.1 release
+ Bug Fixes:
Fix archive retention expiring too aggressively.
+ Improvements:
The expire command is implemented entirely in C.
The local command for restore is implemented entirely in C.
Remove hard-coded PostgreSQL user so $PGUSER works.
Honor configure --prefix option.
Rename repo-s3-verify-ssl option to repo-s3-verify-tls.
The new name is preferred because pgBackRest does not support
any SSL protocol versions (they are all considered to be insecure).
The old name will continue to be accepted.
- Packaging:
+ export %optflag as CFLAG
+ fix make install with new supported prefix
-------------------------------------------------------------------
Thu Jun 6 05:59:01 UTC 2019 - Bruno Friedmann <bruno@ioda-net.ch>

View File

@ -23,7 +23,7 @@
%endif
Name: pgbackrest
Version: 2.11
Version: 2.16
Release: 0
Summary: Reliable PostgreSQL Backup & Restore
License: MIT
@ -31,6 +31,7 @@ Group: Productivity/Databases/Tools
URL: http://www.pgbackrest.org
Source: https://github.com/pgbackrest/pgbackrest/archive/release/%{version}.tar.gz
Source1: pgbackrest-conf.patch
Patch0: libpq-fe.h_localisation.patch
BuildRequires: libxml2-devel
BuildRequires: openssl-devel
BuildRequires: perl
@ -39,6 +40,7 @@ BuildRequires: perl(DBD::Pg)
BuildRequires: perl(Digest::SHA)
BuildRequires: perl(IO::Socket::SSL)
BuildRequires: perl(JSON::PP)
BuildRequires: pkgconfig(libpq)
Requires: perl-libxml-perl
Requires: perl(DBD::Pg)
Requires: perl(Digest::SHA)
@ -72,9 +74,14 @@ The following features are available:
%prep
%setup -q -n %{name}-release-%{version}
%patch0 -p1
pushd src
%configure
popd
%build
# TODO upstream doesn't care about RPM_OPT_FLAGS
export CFLAGS="%optflags"
pushd src
%make_build
popd
@ -85,7 +92,7 @@ install -D -d -m 0700 %{buildroot}%{_localstatedir}/log/%{name}
install -D -d -m 0700 %{buildroot}%{_localstatedir}/spool/%{name}
install -D -d -m 0755 %{buildroot}%{_sysconfdir}
install %{SOURCE1} %{buildroot}/%{_sysconfdir}/%{name}.conf
make install -C src DESTDIR=%{buildroot}%{_bindir}
make install -C src DESTDIR=%{buildroot}
%check
# Tests are only available with Vagrant