Bug 200634

Summary: [patch update] ports-mgmt/portlint fix to de-noise if used with perl5.22
Product: Ports & Packages Reporter: Kurt Jaeger <pi>
Component: Individual Port(s)Assignee: Joe Marcus Clarke <marcus>
Status: Closed FIXED    
Severity: Affects Only Me CC: pi
Priority: --- Flags: bugzilla: maintainer-feedback? (marcus)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
escape left curly brackets in regex none

Description Kurt Jaeger freebsd_committer freebsd_triage 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
those:

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 freebsd_triage 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

Log:
  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]

Changes:
  head/ports-mgmt/portlint/Makefile
  head/ports-mgmt/portlint/src/portlint.pl
Comment 2 Joe Marcus Clarke freebsd_committer freebsd_triage 2015-07-06 14:52:08 UTC
Committed, thanks!