From 40459c2a3af1590012c6ad6d4681c3dd683f7d69 Mon Sep 17 00:00:00 2001 From: fhajny Date: Tue, 9 Jun 2015 15:06:39 +0000 Subject: Update databases/py-barman to 1.4.1. Version 1.4.1 - 05 May 2015 * Fix for WAL archival stop working if first backup is EMPTY (Closes: #64) * Fix exception during error handling in Barman recovery (Closes: #65) * After a backup, limit cron activity to WAL archiving only (Closes: #62) * Improved robustness and error reporting of the backup delete command (Closes: #63) * Fix computation of WAL production ratio as reported in the show-backup command * Improved management of xlogb file, which is now correctly fsynced when updated. Also, the rebuild-xlogdb command now operates on a temporary new file, which overwrites the main one when finished. * Add unit tests for dateutil module compatibility * Modified Barman version following PEP 440 rules and added support of tests in Python 3.4 --- databases/py-barman/Makefile | 4 ++-- databases/py-barman/distinfo | 10 +++++----- databases/py-barman/patches/patch-barman_utils.py | 14 ++++++++++++++ 3 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 databases/py-barman/patches/patch-barman_utils.py diff --git a/databases/py-barman/Makefile b/databases/py-barman/Makefile index 0120b66d38e..5abd86bf2b9 100644 --- a/databases/py-barman/Makefile +++ b/databases/py-barman/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.4 2015/04/13 23:12:40 rodent Exp $ +# $NetBSD: Makefile,v 1.5 2015/06/09 15:06:39 fhajny Exp $ -DISTNAME= barman-1.4.0 +DISTNAME= barman-1.4.1 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= databases python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pgbarman/} diff --git a/databases/py-barman/distinfo b/databases/py-barman/distinfo index 13d1a2726b2..bbc626cbdcc 100644 --- a/databases/py-barman/distinfo +++ b/databases/py-barman/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.2 2015/04/07 09:42:55 fhajny Exp $ +$NetBSD: distinfo,v 1.3 2015/06/09 15:06:39 fhajny Exp $ -SHA1 (barman-1.4.0.tar.gz) = bdeab227133bf58005b1b7b3812ffbd52cb3fd18 -RMD160 (barman-1.4.0.tar.gz) = 77bcccac32158f7dffd022a99bfce270758e0ae6 -Size (barman-1.4.0.tar.gz) = 120590 bytes -SHA1 (patch-barman_backup.py) = 552ce149f700aca35487144d8bc9ba0063bcacf5 +SHA1 (barman-1.4.1.tar.gz) = 9f6465271bdac62d1a00c1f9e9da3737da0cd2ee +RMD160 (barman-1.4.1.tar.gz) = 1ef7caae63fd5d7698cf2c9b6671c34044071200 +Size (barman-1.4.1.tar.gz) = 122048 bytes +SHA1 (patch-barman_utils.py) = 30723ff650fcbe0c1cf5108424d997bf96898fd4 diff --git a/databases/py-barman/patches/patch-barman_utils.py b/databases/py-barman/patches/patch-barman_utils.py new file mode 100644 index 00000000000..5af25ff4e6e --- /dev/null +++ b/databases/py-barman/patches/patch-barman_utils.py @@ -0,0 +1,14 @@ +$NetBSD: patch-barman_utils.py,v 1.1 2015/06/09 15:06:39 fhajny Exp $ + +Make portable for non-glibc platforms too. +--- barman/utils.py.orig 2015-04-17 13:05:38.000000000 +0000 ++++ barman/utils.py +@@ -239,7 +239,7 @@ def fsync_dir(dir_path): + :param str dir_path: The directory to sync + :raise OSError: If fail opening the directory + """ +- dir_fd = os.open(dir_path, os.O_DIRECTORY) ++ dir_fd = os.open(dir_path, os.O_RDONLY) + try: + os.fsync(dir_fd) + except OSError, e: -- cgit v1.2.3