Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Oct 2016 10:17:47 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r423845 - in head/net/p5-Net-Server: . files
Message-ID:  <201610121017.u9CAHlax028786@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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' : '';
+         }
+     }
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610121017.u9CAHlax028786>