Changeset 135918


Ignore:
Timestamp:
May 7, 2015, 12:36:50 AM (5 years ago)
Author:
ryandesign@…
Message:

portlint.tct: more specific lint check for syntax which needs the compiler_blacklist_versions portgroup; see https://lists.macosforge.org/pipermail/macports-dev/2015-May/030462.html

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portlint.tcl

    r123096 r135918  
    290290        }
    291291
    292         if {[regexp {compiler\.blacklist.*\{} $line] && ![info exists portgroups(compiler_blacklist_versions)]} {
    293             ui_error "Line $lineno uses compiler.blacklist in a way that requires the compiler_blacklist_versions portgroup, but this portgroup has not been included"
     292        if {[regexp {compiler\.blacklist(?:-[a-z]+)?\s.*(["{]\S+(?:\s+\S+){2,}["}])} $line -> blacklist] && ![info exists portgroups(compiler_blacklist_versions)]} {
     293            ui_error "Line $lineno uses compiler.blacklist entry $blacklist which requires the compiler_blacklist_versions portgroup which has not been included"
    294294            incr errors
    295295        }
Note: See TracChangeset for help on using the changeset viewer.