pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/znapzend znapzend: patch for newer mojolicious



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f59b01590db9
branches:  trunk
changeset: 368975:f59b01590db9
user:      wiedi <wiedi%pkgsrc.org@localhost>
date:      Mon Sep 25 10:50:27 2017 +0000

description:
znapzend: patch for newer mojolicious

Fixes "Mojo::Util::slurp is DEPRECATED" error.
Upstream PR https://github.com/oetiker/znapzend/pull/283

diffstat:

 sysutils/znapzend/Makefile                      |   3 ++-
 sysutils/znapzend/distinfo                      |   3 ++-
 sysutils/znapzend/patches/patch-lib_ZnapZend.pm |  25 +++++++++++++++++++++++++
 3 files changed, 29 insertions(+), 2 deletions(-)

diffs (54 lines):

diff -r 30c1426cc69f -r f59b01590db9 sysutils/znapzend/Makefile
--- a/sysutils/znapzend/Makefile        Sun Sep 24 21:07:17 2017 +0000
+++ b/sysutils/znapzend/Makefile        Mon Sep 25 10:50:27 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.12 2017/06/10 16:37:41 wiedi Exp $
+# $NetBSD: Makefile,v 1.13 2017/09/25 10:50:27 wiedi Exp $
 
 DISTNAME=      znapzend-0.17.0
+PKGREVISION=   1
 CATEGORIES=    sysutils
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=oetiker/}
 
diff -r 30c1426cc69f -r f59b01590db9 sysutils/znapzend/distinfo
--- a/sysutils/znapzend/distinfo        Sun Sep 24 21:07:17 2017 +0000
+++ b/sysutils/znapzend/distinfo        Mon Sep 25 10:50:27 2017 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.12 2017/06/10 16:37:41 wiedi Exp $
+$NetBSD: distinfo,v 1.13 2017/09/25 10:50:27 wiedi Exp $
 
 SHA1 (znapzend-0.17.0.tar.gz) = 77463270d24ef7a3a4658c614b5a9fef618308e8
 RMD160 (znapzend-0.17.0.tar.gz) = 7bb64b5bf103693c5dfd30b8d4973fd5718eed3a
 SHA512 (znapzend-0.17.0.tar.gz) = 51b5076cee4ba73f6e681f8e2aafd4b7f1aea29534dc6a12a895ff902a98410f452ee1d33b4061fa39e40fff0bcdb302c6928534810d1c76a47ea5a7bd13643d
 Size (znapzend-0.17.0.tar.gz) = 151268 bytes
 SHA1 (patch-Makefile.in) = 5ddb527ada8d3657f806d0731dd24856dde35cc7
+SHA1 (patch-lib_ZnapZend.pm) = a3c13d9cdb7a276df564794a62600801f26d42b8
diff -r 30c1426cc69f -r f59b01590db9 sysutils/znapzend/patches/patch-lib_ZnapZend.pm
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/znapzend/patches/patch-lib_ZnapZend.pm   Mon Sep 25 10:50:27 2017 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-lib_ZnapZend.pm,v 1.1 2017/09/25 10:50:28 wiedi Exp $
+
+Fix Mojo::Util::slurp is DEPRECATED
+https://github.com/oetiker/znapzend/pull/283
+--- lib/ZnapZend.pm.orig       2017-02-08 07:38:40.000000000 +0000
++++ lib/ZnapZend.pm
+@@ -2,7 +2,8 @@ package ZnapZend;
+ 
+ use Mojo::Base -base;
+ use Mojo::IOLoop::ForkCall;
+-use Mojo::Util qw(slurp);
++use Mojo::File 'path';
++use Mojo::Util;
+ use Mojo::Log;
+ use ZnapZend::Config;
+ use ZnapZend::ZFS;
+@@ -573,7 +574,7 @@ my $daemonize = sub {
+     my $pidFile = $self->pidfile || $self->defaultPidFile;
+ 
+     if (-f $pidFile){
+-        chomp(my $pid = slurp $pidFile);
++        chomp(my $pid = path($pidFile)->slurp);
+         #pid is not empty and is numeric
+         if ($pid && ($pid = int($pid)) && kill 0, $pid){
+             die "I Quit! Another copy of znapzend ($pid) seems to be running. See $pidFile\n";



Home | Main Index | Thread Index | Old Index