Bug 246329

Summary: ports-mgmt/portlint: strange output for multimedia/makemkv
Product: Ports & Packages Reporter: Kurt Jaeger <pi>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: New ---    
Severity: Affects Only Me CC: ak, felix, marcus, pi
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Kurt Jaeger freebsd_committer 2020-05-09 12:06:31 UTC
Running portlint -vAC gives this strange output in the check for MASTER_SITES:

[...]
OK: seen MASTER_SITES, sanity checking URLs.
OK: URL "http://www.makemkv.com/download/:makemkv" ok.
OK: URL "http://www.makemkv.com/download/old/:makemkv" ok.
OK: non-URL "KERNEL_ORG/linux/kernel/v2.6:linux" ok.
make: Unknown modifier 'b'
OK: non-URL "GNU/binutils:binutils" ok.
make: Unknown modifier 'g'
OK: non-URL "GNU/glibc:glibc" ok.
make: Unknown modifier 'g'
OK: non-URL "GNU/gmp:gmp" ok.
make: Unknown modifier 'm'
OK: non-URL "GNU/mpfr:mpfr" ok.
make: Unknown modifier 'm'
OK: non-URL "GNU/mpc:mpc" ok.
OK: non-URL "GCC/releases/gcc-${GCCVERSION}:gcc" ok.
OK: non-URL "SF/opencore-amr/fdk-aac/:fdkaac" ok.
[...]

This happens somewhere in get_makevar*() ?
Comment 1 Felix Palmen 2020-05-11 19:01:07 UTC
Maybe there is something wrong with the MASTER_SITES? But if so, I don't see it. Still, freshports seems to have problems as well, it shows "There is no master site for this port."

https://www.freshports.org/multimedia/makemkv/
Comment 2 Alex Kozlov freebsd_committer 2020-05-21 18:01:18 UTC
The variables like KERNEL_ORG/GNU/etc needs to be expanded before URL/non-URL check. These make warnings are secondary and is from get_makevar()' make invocation, make assumes letters after ':' are variable modifiers: 
$make -V GNU/binutils:binutils
make: Unknown modifier 'b'