svn commit: r453868 - in branches/2017Q4/devel/p5-Log-Dispatch-File-Rolling: . files
Mark Felder
feld at FreeBSD.org
Thu Nov 9 20:34:52 UTC 2017
Author: feld
Date: Thu Nov 9 20:34:51 2017
New Revision: 453868
URL: https://svnweb.freebsd.org/changeset/ports/453868
Log:
MFH: r453867
devel/p5-Log-Dispatch-File-Rolling: Fix compatibility with Log-Dispatch 2.67
Added:
branches/2017Q4/devel/p5-Log-Dispatch-File-Rolling/files/patch-lib_Log_Dispatch_File_Rolling.pm
- copied unchanged from r453867, head/devel/p5-Log-Dispatch-File-Rolling/files/patch-lib_Log_Dispatch_File_Rolling.pm
Deleted:
branches/2017Q4/devel/p5-Log-Dispatch-File-Rolling/files/patch-Log-Dispatch-File-Rolling-pm-fix-append-mode
Modified:
branches/2017Q4/devel/p5-Log-Dispatch-File-Rolling/Makefile
Directory Properties:
branches/2017Q4/ (props changed)
Modified: branches/2017Q4/devel/p5-Log-Dispatch-File-Rolling/Makefile
==============================================================================
--- branches/2017Q4/devel/p5-Log-Dispatch-File-Rolling/Makefile Thu Nov 9 20:34:16 2017 (r453867)
+++ branches/2017Q4/devel/p5-Log-Dispatch-File-Rolling/Makefile Thu Nov 9 20:34:51 2017 (r453868)
@@ -2,7 +2,7 @@
PORTNAME= Log-Dispatch-File-Rolling
PORTVERSION= 1.09
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -12,9 +12,9 @@ COMMENT= Object for logging to date/time/pid stamped f
LICENSE= ART20
-BUILD_DEPENDS= p5-Log-Dispatch>=2.37:devel/p5-Log-Dispatch \
+BUILD_DEPENDS= p5-Log-Dispatch>=2.67:devel/p5-Log-Dispatch \
p5-Log-Log4perl>=1.38:devel/p5-Log-Log4perl
-RUN_DEPENDS= p5-Log-Dispatch>=2.37:devel/p5-Log-Dispatch \
+RUN_DEPENDS= p5-Log-Dispatch>=2.67:devel/p5-Log-Dispatch \
p5-Log-Log4perl>=1.38:devel/p5-Log-Log4perl
USES= dos2unix perl5
Copied: branches/2017Q4/devel/p5-Log-Dispatch-File-Rolling/files/patch-lib_Log_Dispatch_File_Rolling.pm (from r453867, head/devel/p5-Log-Dispatch-File-Rolling/files/patch-lib_Log_Dispatch_File_Rolling.pm)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ branches/2017Q4/devel/p5-Log-Dispatch-File-Rolling/files/patch-lib_Log_Dispatch_File_Rolling.pm Thu Nov 9 20:34:51 2017 (r453868, copy of r453867, head/devel/p5-Log-Dispatch-File-Rolling/files/patch-lib_Log_Dispatch_File_Rolling.pm)
@@ -0,0 +1,24 @@
+--- lib/Log/Dispatch/File/Rolling.pm.orig 2017-11-09 20:22:14 UTC
++++ lib/Log/Dispatch/File/Rolling.pm
+@@ -39,7 +39,8 @@ sub new {
+ my $self = bless {}, $class;
+
+ # only append mode is supported
+- $p{mode} = 'append';
++ $p{mode} = 'append'; # Specifies append for Log::Dispatch::File 2.37 through 2.58
++ $self->{mode} = '>>'; # Specifies append for Log::Dispatch::File 2.59+ (no longer done by _basic_init)
+
+ # base class initialization
+ $self->_basic_init(%p);
+@@ -63,7 +64,10 @@ sub new {
+ }
+
+ $self->{rolling_fh_pid} = $$;
+- $self->_make_handle();
++ # _make_handle() was removed in Log::Dispatch::File 2.67
++ # $self->_make_handle();
++ $self->_open_file()
++ unless $self->{close_after_write} || $self->{lazy_open};
+
+ return $self;
+ }
More information about the svn-ports-all
mailing list