Bug 237781 - ports-mgmt/portlint: whines about IGNORE within .if blocks, even though the IGNORE works there
Summary: ports-mgmt/portlint: whines about IGNORE within .if blocks, even though the I...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Joe Marcus Clarke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-08 01:40 UTC by Larry Rosenman
Modified: 2019-05-08 01:40 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (marcus)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Larry Rosenman freebsd_committer 2019-05-08 01:40:58 UTC
I ran portlint against the current sysutils/lsof Makefile, and portlint complains:

⌂115% [ler@borg.lerctr.org:/usr/ports/sysutils/lsof] $ portlint
WARN: Makefile: "IGNORE" has to appear earlier.
0 fatal errors and 1 warning found.
⌂106% [ler@borg.lerctr.org:/usr/ports/sysutils/lsof] $

No matter where I put the .if block, it complains.  If I put it before the
.include <bsd.port.pre.mk>
line, the check fails in poudriere.

As far as I know, the IGNORE doesn't have to be moved for this case (I'm not sure of the exact rules, but this warning is INCORRECT).