svn commit: r384372 - head/math/oleo/files

Mathieu Arnold mat at FreeBSD.org
Mon Apr 20 17:26:29 UTC 2015


Author: mat
Date: Mon Apr 20 17:26:28 2015
New Revision: 384372
URL: https://svnweb.freebsd.org/changeset/ports/384372

Log:
  Fix build 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

Added:
  head/math/oleo/files/patch-doc_texi2html.in   (contents, props changed)

Added: head/math/oleo/files/patch-doc_texi2html.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/oleo/files/patch-doc_texi2html.in	Mon Apr 20 17:26:28 2015	(r384372)
@@ -0,0 +1,23 @@
+--- doc/texi2html.in.orig	2015-04-20 17:22:33 UTC
++++ doc/texi2html.in
+@@ -3790,9 +3790,9 @@ sub update_sec_num {
+     my $ret;
+ 
+     $level--; # here we start at 0
+-    if ($name =~ /^appendix/ || defined(@appendix_sec_num)) {
++    if ($name =~ /^appendix/ || @appendix_sec_num) {
+ 	# appendix style
+-	if (defined(@appendix_sec_num)) {
++	if (@appendix_sec_num) {
+ 	    &incr_sec_num($level, @appendix_sec_num);
+ 	} else {
+ 	    @appendix_sec_num = ('A', 0, 0, 0);
+@@ -3800,7 +3800,7 @@ sub update_sec_num {
+ 	$ret = join('.', @appendix_sec_num[0..$level]);
+     } else {
+ 	# normal style
+-	if (defined(@normal_sec_num)) 
++	if (@normal_sec_num) 
+ 	{
+ 	  &incr_sec_num($level, @normal_sec_num);
+ 	} 


More information about the svn-ports-all mailing list