[arch-commits] Commit in backuppc/trunk (06-fix-defined-on-array.patch PKGBUILD)
Sébastien Luttringer
seblu at archlinux.org
Wed Jul 1 13:06:45 UTC 2015
Date: Wednesday, July 1, 2015 @ 15:06:45
Author: seblu
Revision: 136202
upgpkg: backuppc 3.3.1-3
- fix perl 5.22 breakage
Added:
backuppc/trunk/06-fix-defined-on-array.patch
Modified:
backuppc/trunk/PKGBUILD
-------------------------------+
06-fix-defined-on-array.patch | 28 ++++++++++++++++++++++++++++
PKGBUILD | 9 ++++++---
2 files changed, 34 insertions(+), 3 deletions(-)
Added: 06-fix-defined-on-array.patch
===================================================================
--- 06-fix-defined-on-array.patch (rev 0)
+++ 06-fix-defined-on-array.patch 2015-07-01 13:06:45 UTC (rev 136202)
@@ -0,0 +1,28 @@
+# Copyright © Sébastien Luttringer
+
+# This patch is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This patch is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this patch. If not, see <http://www.gnu.org/licenses/>.
+
+# perl 5.22 raise errors when defined is used on arrays
+
+--- a/lib/BackupPC/CGI/Browse.pm 2015-06-01 09:05:54.000000000 +0200
++++ b/lib/BackupPC/CGI/Browse.pm 2015-07-01 14:34:28.480199121 +0200
+@@ -65,7 +65,7 @@
+ #
+ # default to the newest backup
+ #
+- if ( !defined($In{num}) && defined(@Backups) && @Backups > 0 ) {
++ if ( !defined($In{num}) && @Backups && @Backups > 0 ) {
+ $i = @Backups - 1;
+ $num = $Backups[$i]{num};
+ }
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-07-01 12:46:36 UTC (rev 136201)
+++ PKGBUILD 2015-07-01 13:06:45 UTC (rev 136202)
@@ -3,7 +3,7 @@
pkgname=backuppc
pkgver=3.3.1
-pkgrel=2
+pkgrel=3
pkgdesc='Enterprise-grade system for backing up Linux, Windows and MacOS PCs'
url='http://backuppc.sourceforge.net/'
license=('GPL2')
@@ -13,6 +13,7 @@
'perl-archive-zip'
'perl-file-listing'
'perl-time-modules'
+ 'perl-cgi'
'perl-xml-rss'
'smbclient')
optdepends=('rsync: used by rsync transfert method'
@@ -30,7 +31,8 @@
'02-move-socket-into-run.patch'
'03-fix-FS#32642.patch'
'04-fix-cve-2011-4923.patch'
- '05-fix-edit-menu-ordering.patch')
+ '05-fix-edit-menu-ordering.patch'
+ '06-fix-defined-on-array.patch')
install=$pkgname.install
backup=("etc/$pkgname/config.pl"
"etc/$pkgname/hosts"
@@ -48,7 +50,8 @@
'b468820ed542023e1fec7ce8c88a0c3b'
'3917c474a275e262fde246daf59ffe31'
'aca8392c5dea60c3cceeb02ebcc63497'
- '2a568701fd1caf75490987814786fecf')
+ '2a568701fd1caf75490987814786fecf'
+ 'd48f3032e65a8fc4409454fe04faf9e1')
prepare() {
for _p in *.patch; do
More information about the arch-commits
mailing list