This warning added in response to PR 225503 has proved useful in helping me simplify gcc7, gcc6, and a couple of older GCC-related ports.
It is, however, overeager for several other cases, such as
% cd $PORTSDIR/lang/gcc8-devel
% portlint -C
WARN: Makefile: typically when you specify magic site GCC you do not
need anything else as releases/gcc-8-20180511 is assumed
This port has
whereas wh in Mk/bsd.sites.mk has
Would avoiding the warning when the first directory component of
MASTER_SITES is *not* part of what MASTER_SITES_ABBREVS be a good
(In this case that would be "snapshots" which is not part of
Fixed in my repo pending the next release.
You may want to play with this as it touches a pretty low-level function in portlint.
A commit references this bug:
Date: Sun Jun 24 16:13:07 UTC 2018
New revision: 473207
Update to 2.18.3.
* Be less strict in the check for MASTER_SITE_SUBDIR use.
This change checks that the subdirectory used is actually different
than what is defined in MASTER_SITES_SUBDIRS. To make this easier to
do, support has been added to single-quote variables passed to the
get_makevar* functions. 
* Now only PY_FLAVOR is recommended as opposed to FLAVOR. 
* Remove an errant ':' when suggesting PY_FLAVOR. 
PR: 228227 
Requested by: mat 
Reported by: koobs 
Committed to 2.18.3.