port lint and active_variants port group

Ryan Schmidt ryandesign at macports.org
Fri Dec 7 23:00:37 PST 2012

On Dec 7, 2012, at 22:23, Adam Mercer wrote:

> This builds fine and I get the appropriate error when trying to
> install lal if it is not built with the +swig_python variant, but when
> I run "port lint" I get the following errors:
> $ port lint
> --->  Verifying Portfile for lalframe
> Error: Line 4 has unrecognized PortGroup
> Error: org.macports.lint for port lalframe returned: can't read
> "portgroup": no such variable
> To report a bug, follow the instructions in the guide:
>    http://guide.macports.org/#project.tickets
> Error: Processing of port lalframe failed
> $
> What's confusing me is that line 4 doesn't contain any PortGroup so
> I'm not sure what lint is complaining about? The
> active_variants-1.1.tcl file is present in my ports tree. Can any one
> see what I'm doing wrong?

Please ignore those lint errors until the next version of MacPorts is released.

MacPorts 2.1.2's lint check does not recognize portgroups whose names contain an underscore and prints these incorrect messages as a result.

I have already committed one fix to lint in trunk and will commit another to hopefully fix everything.

More information about the macports-dev mailing list