svn commit: r423845 - in head/net/p5-Net-Server: . files

Mathieu Arnold mat at FreeBSD.org
Wed Oct 12 10:17:48 UTC 2016


Author: mat
Date: Wed Oct 12 10:17:47 2016
New Revision: 423845
URL: https://svnweb.freebsd.org/changeset/ports/423845

Log:
  Fix comparing versions.
  
  In Perl, versions are not numbers. While they may look like numbers,
  they are not, they are kind of special strings and should be treated as
  such.
  
  Reported by:	bjornr isnic is
  Sponsored by:	Absolight

Added:
  head/net/p5-Net-Server/files/
  head/net/p5-Net-Server/files/patch-lib_Net_Server_Log_Sys_Syslog.pm   (contents, props changed)
Modified:
  head/net/p5-Net-Server/Makefile   (contents, props changed)

Modified: head/net/p5-Net-Server/Makefile
==============================================================================
--- head/net/p5-Net-Server/Makefile	Wed Oct 12 10:17:16 2016	(r423844)
+++ head/net/p5-Net-Server/Makefile	Wed Oct 12 10:17:47 2016	(r423845)
@@ -3,7 +3,7 @@
 
 PORTNAME=	Net-Server
 PORTVERSION=	2.008
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-

Added: head/net/p5-Net-Server/files/patch-lib_Net_Server_Log_Sys_Syslog.pm
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/p5-Net-Server/files/patch-lib_Net_Server_Log_Sys_Syslog.pm	Wed Oct 12 10:17:47 2016	(r423845)
@@ -0,0 +1,17 @@
+--- lib/Net/Server/Log/Sys/Syslog.pm.orig	2014-05-05 18:43:15 UTC
++++ lib/Net/Server/Log/Sys/Syslog.pm
+@@ -39,12 +39,12 @@ sub initialize {
+         # do nothing - assume they have what they want
+     } else {
+         if (! defined $prop->{'syslog_logsock'}) {
+-            $prop->{'syslog_logsock'} = ($Sys::Syslog::VERSION < 0.15) ? 'unix' : '';
++            $prop->{'syslog_logsock'} = ($Sys::Syslog::VERSION lt '0.15') ? 'unix' : '';
+         }
+         if ($prop->{'syslog_logsock'} =~ /^(|native|tcp|udp|unix|inet|stream|console)$/) {
+             $prop->{'syslog_logsock'} = $1;
+         } else {
+-            $prop->{'syslog_logsock'} = ($Sys::Syslog::VERSION < 0.15) ? 'unix' : '';
++            $prop->{'syslog_logsock'} = ($Sys::Syslog::VERSION lt '0.15') ? 'unix' : '';
+         }
+     }
+ 


More information about the svn-ports-all mailing list