Bug 202986 - devel/automake: Perl 5.22 breaks automake
Summary: devel/automake: Perl 5.22 breaks automake
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Tijl Coosemans
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-09 08:47 UTC by Bernard Spil
Modified: 2015-10-05 10:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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