Bug 202986

Summary: devel/automake: Perl 5.22 breaks automake
Product: Ports & Packages Reporter: Bernard Spil <brnrd>
Component: Individual Port(s)Assignee: Tijl Coosemans <tijl>
Status: Closed FIXED    
Severity: Affects Some People    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Bernard Spil freebsd_committer freebsd_triage 2015-09-09 08:47:20 UTC
Running automake returns:
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /usr/local/bin/automake-1.15 line 3936.

this seems to be a result of perl >= 5.22

Patch is dead simple
--- /usr/local/bin/automake-1.15.orig   2015-08-17 09:59:32.000000000 +0200
+++ /usr/local/bin/automake-1.15        2015-09-09 10:07:51.485641798 +0200
@@ -3933,7 +3933,7 @@ sub substitute_ac_subst_variables_worker
 sub substitute_ac_subst_variables
 {
   my ($text) = @_;
-  $text =~ s/\${([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;
+  $text =~ s/\$\{([^ \t=:+{}]+)\}/substitute_ac_subst_variables_worker ($1)/ge;
   return $text;
 }
Comment 1 commit-hook freebsd_committer freebsd_triage 2015-10-05 10:15:23 UTC
A commit references this bug:

Author: tijl
Date: Mon Oct  5 10:14:46 UTC 2015
New revision: 398633
URL: https://svnweb.freebsd.org/changeset/ports/398633

Log:
  Add a patch for perl 5.22 which warns that unescaped left braces in
  regular expressions are deprecated.

  PR:		202986
  Submitted by:	brnrd

Changes:
  head/devel/automake/Makefile
  head/devel/automake/files/patch-bin-automake.in