diff options
author | mat <mat@FreeBSD.org> | 2015-04-21 01:19:24 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2015-04-21 01:19:24 +0800 |
commit | c6057efc954bfe21f98d92db934c8de5fb62fb23 (patch) | |
tree | 040dd5f968de054baef0bf35cae7195bafc0f2ae | |
parent | a72e9fd6bdd91439c8c2d147cb0ce5672409bab0 (diff) | |
download | freebsd-ports-gnome-c6057efc954bfe21f98d92db934c8de5fb62fb23.tar.gz freebsd-ports-gnome-c6057efc954bfe21f98d92db934c8de5fb62fb23.tar.zst freebsd-ports-gnome-c6057efc954bfe21f98d92db934c8de5fb62fb23.zip |
Fix with Perl 5.21.1+.
"defined(@array)" and "defined(%hash)" are now fatal errors
These have been deprecated since v5.6.1 and have raised deprecation
warnings since v5.16.
With hat: perl@
Sponsored by: Absolight
-rw-r--r-- | mail/bsmtp/files/patch-configure | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/mail/bsmtp/files/patch-configure b/mail/bsmtp/files/patch-configure index 22b7e859c2d8..e13f668979f6 100644 --- a/mail/bsmtp/files/patch-configure +++ b/mail/bsmtp/files/patch-configure @@ -1,8 +1,5 @@ - -$FreeBSD$ - ---- configure.orig 2013-11-01 19:55:42.000000000 +0100 -+++ configure 2013-11-01 19:55:42.000000000 +0100 +--- configure.orig 2015-04-20 17:10:57 UTC ++++ configure @@ -41,6 +41,11 @@ if ($#ARGV == 0) { "batcher", "batcher.c", @@ -15,6 +12,24 @@ $FreeBSD$ "bsmtp.m4.8.9", "bsmtp.m4.8.8", "bsmtp.m4.8.7", +@@ -146,7 +151,7 @@ if (! $redo) { + } + } + } elsif ($macro eq "\@DAEMONUID\@") { +- if (! defined @getpwnam) { ++ if (! @getpwnam) { + if (! defined $value{'@DAEMONUSER@'}) { + die "\@DAEMONUSER\@ must be defined before \@DAEMONUID\@\n"; + } +@@ -158,7 +163,7 @@ if (! $redo) { + ($name, $_, $uid, $_, $_, $_, $_, $_, $_) = @getpwnam; + $default[$i] = $uid; + } elsif ($macro eq "\@DAEMONGID\@") { +- if (! defined @getpwnam) { ++ if (! @getpwnam) { + if (! defined $value{'@DAEMONUSER@'}) { + die "\@DAEMONUSER\@ must be defined before \@DAEMONUID\@\n"; + } @@ -198,6 +203,16 @@ if (! $redo) { $default[$i] = '8.8'; } elsif ($value{'@SENDMAILVERS@'} =~ /^\s*8\.9(\..*)?\s*$/) { |