Bug 200634 - [patch update] ports-mgmt/portlint fix to de-noise if used with perl5.22
Summary: [patch update] ports-mgmt/portlint fix to de-noise if used with perl5.22
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Joe Marcus Clarke
Depends on:
Reported: 2015-06-04 11:45 UTC by Kurt Jaeger
Modified: 2015-07-06 14:52 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (marcus)

escape left curly brackets in regex (6.87 KB, patch)
2015-06-04 11:45 UTC, Kurt Jaeger
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Jaeger freebsd_committer 2015-06-04 11:45:33 UTC
Created attachment 157406 [details]
escape left curly brackets in regex

If portlint is used and perl5.22 is installed, it has many error messages like

Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\nMAN3PREFIX=\s*\${PREFIX}/lib/perl5/\${ <-- HERE PERL_VER/ at /usr/local/bin/portlint line 2959.

Solution: add \ to every left open curly bracket in a regexp.
Comment 1 commit-hook freebsd_committer 2015-07-06 14:51:57 UTC
A commit references this bug:

Author: marcus
Date: Mon Jul  6 14:51:17 UTC 2015
New revision: 391416
URL: https://svnweb.freebsd.org/changeset/ports/391416

  Update to 2.16.5.

  * Add a check for BROKEN similar to IGNORE [1]
  * Quiet the noise when used with Perl 5.22 [2]
  * Fix a bug checking for USES sortedness [3]
  * Correct a logic bug checking for USE_ANT [4]

  PR:		200634 [2]
  		200792 [3]
  		200421 [4]
  Submitted by:	pi [2]
  		John Hein <z7dr6ut7gs@snkmail.com> [4]
  Reported by:	koobs [1]

Comment 2 Joe Marcus Clarke freebsd_committer 2015-07-06 14:52:08 UTC
Committed, thanks!