Created attachment 184824 [details]
I just was a little puzzled about the following:
WARN: Makefile: : Setting a specific version for USE_GCC should only be done as a last resort. Unless you have confirmed this port does not build with later versions of GCC, please use USE_GCC=5 # Cannot require ourselves, needs to be at least 4.9.+.
Looking at the code I realized portlint does not trim comments, but uses everything after USE_GCC= as the parameter to this option.
This patch addresses it. (Pardon my poor Perl skills; there may be better
Committed to my repo ahead of the next release. Thanks.
A commit references this bug:
Date: Thu Aug 3 12:55:02 UTC 2017
New revision: 447208
Update to 2.17.11.
* Trim comments after USE_GCC 
* Add a check for redundant SHEBANG_LANG values 
* Make sure both USES and USE_* are actually seen before checking
to see if one is included before the other 
PR: 221085 
Submitted by: gerald 
Reported by: dbaio 
Committed to 2.17.11. Thanks!
MARKED AS SPAM