From owner-svn-ports-all@freebsd.org Wed Oct 12 10:17:48 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F1EEC0D214; Wed, 12 Oct 2016 10:17:48 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 570A023C; Wed, 12 Oct 2016 10:17:48 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u9CAHlSt028788; Wed, 12 Oct 2016 10:17:47 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u9CAHlax028786; Wed, 12 Oct 2016 10:17:47 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201610121017.u9CAHlax028786@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Wed, 12 Oct 2016 10:17:47 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2016 10:17:48 -0000 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' : ''; + } + } +