diff options
author | mat <mat@FreeBSD.org> | 2016-10-12 18:17:47 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2016-10-12 18:17:47 +0800 |
commit | bcdffe422f32eb50794aa2761189e804fc491e91 (patch) | |
tree | 08b61394d305ab0233000a382a5d511ec22db47a /net/p5-Net-Server | |
parent | 35cdaf0caf25a77908f3ca29c17bbe6e46b83acd (diff) | |
download | freebsd-ports-gnome-bcdffe422f32eb50794aa2761189e804fc491e91.tar.gz freebsd-ports-gnome-bcdffe422f32eb50794aa2761189e804fc491e91.tar.zst freebsd-ports-gnome-bcdffe422f32eb50794aa2761189e804fc491e91.zip |
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
Diffstat (limited to 'net/p5-Net-Server')
-rw-r--r-- | net/p5-Net-Server/Makefile | 2 | ||||
-rw-r--r-- | net/p5-Net-Server/files/patch-lib_Net_Server_Log_Sys_Syslog.pm | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/net/p5-Net-Server/Makefile b/net/p5-Net-Server/Makefile index ed4fd37c4bf3..c08a92b7c89b 100644 --- a/net/p5-Net-Server/Makefile +++ b/net/p5-Net-Server/Makefile @@ -3,7 +3,7 @@ PORTNAME= Net-Server PORTVERSION= 2.008 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- diff --git a/net/p5-Net-Server/files/patch-lib_Net_Server_Log_Sys_Syslog.pm b/net/p5-Net-Server/files/patch-lib_Net_Server_Log_Sys_Syslog.pm new file mode 100644 index 000000000000..8af8ec6e0836 --- /dev/null +++ b/net/p5-Net-Server/files/patch-lib_Net_Server_Log_Sys_Syslog.pm @@ -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' : ''; + } + } + |