Fri May 30 10:57:45 2014 UTC ()
Make "automake" work with Perl 5.20.0.

Bump package revision because of this fix.


(tron)
diff -r1.24 -r1.25 pkgsrc/devel/automake14/Makefile
diff -r1.5 -r1.6 pkgsrc/devel/automake14/distinfo
diff -r1.1 -r1.2 pkgsrc/devel/automake14/patches/patch-ac

cvs diff -r1.24 -r1.25 pkgsrc/devel/automake14/Makefile (expand / switch to context diff)
--- pkgsrc/devel/automake14/Makefile 2014/05/29 23:35:34 1.24
+++ pkgsrc/devel/automake14/Makefile 2014/05/30 10:57:44 1.25
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.24 2014/05/29 23:35:34 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2014/05/30 10:57:44 tron Exp $
 
 DISTNAME=	automake-1.4-p6
 PKGNAME=	automake14-1.4.6
-PKGREVISION=	4
+PKGREVISION=	5
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_GNU:=automake/}
 

cvs diff -r1.5 -r1.6 pkgsrc/devel/automake14/distinfo (expand / switch to context diff)
--- pkgsrc/devel/automake14/distinfo 2011/06/10 09:43:41 1.5
+++ pkgsrc/devel/automake14/distinfo 2014/05/30 10:57:44 1.6
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.5 2011/06/10 09:43:41 tron Exp $
+$NetBSD: distinfo,v 1.6 2014/05/30 10:57:44 tron Exp $
 
 SHA1 (automake-1.4-p6.tar.gz) = 330c75c98e6dcdf21cbb63cf94ced8ea564b9438
 RMD160 (automake-1.4-p6.tar.gz) = ae40b2200eec95b601ebc65bc3cc916bb2a54066
 Size (automake-1.4-p6.tar.gz) = 375060 bytes
 SHA1 (patch-aa) = e5e7f073a777be92f419173c9cc84dc42325a3a1
 SHA1 (patch-ab) = b074d0139e0b36f19a71304e739ea5b7f332fcc6
-SHA1 (patch-ac) = 3e9800a8592c6dfd56311ab6e3066066cb5bc46f
+SHA1 (patch-ac) = bb6ce6621d5c93fd4a0bbcea7ce0f5292d451c42

cvs diff -r1.1 -r1.2 pkgsrc/devel/automake14/patches/patch-ac (expand / switch to context diff)
--- pkgsrc/devel/automake14/patches/patch-ac 2011/06/10 09:43:41 1.1
+++ pkgsrc/devel/automake14/patches/patch-ac 2014/05/30 10:57:44 1.2
@@ -1,11 +1,31 @@
-$NetBSD: patch-ac,v 1.1 2011/06/10 09:43:41 tron Exp $
+$NetBSD: patch-ac,v 1.2 2014/05/30 10:57:44 tron Exp $
 
-Fix for CVE-2009-4029 taken from here:
+1.) Fix for CVE-2009-4029 taken from here:
 
 http://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=449d20aa12e13fefd848604225fc83d0c39c61d0
 
+2.) Make this work with Perl 5.20.0 and newer.
+
 --- automake.in.orig	2002-07-27 21:55:58.000000000 +0100
-+++ automake.in	2011-06-10 10:34:37.000000000 +0100
++++ automake.in	2014-05-30 11:50:32.000000000 +0100
+@@ -983,7 +983,7 @@
+ 
+ 	# Compute the function name of the finisher and then call it.
+ 	$name = 'lang_' . $lang . '_finish';
+-	do $name ();
++	eval "$name()";
+     }
+ 
+     # If the project is entirely C++ or entirely Fortran 77, don't
+@@ -1144,7 +1144,7 @@
+ 		# Found the language, so see what it says.
+ 		local ($subr) = 'lang_' . $lang . '_rewrite';
+ 		# Note: computed subr call.
+-		local ($r) = do $subr ($base, $extension);
++		local ($r) = eval "$subr(\$base, \$extension)";
+ 		# Skip this entry if we were asked not to process it.
+ 		next if ! $r;
+ 
 @@ -2336,7 +2336,7 @@
  	# Create dist directory.
  	$output_rules .= ("\t-rm -rf \$(distdir)\n"