Bug 251430 - ports-mgmt/portlint: "the last line of Makefile has to be .include <bsd.port(.post).mk>" is a bit too strict
Summary: ports-mgmt/portlint: "the last line of Makefile has to be .include <bsd.port(...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Joe Marcus Clarke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-27 22:07 UTC by Gerald Pfeifer
Modified: 2020-11-29 17:25 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 Gerald Pfeifer freebsd_committer freebsd_triage 2020-11-27 22:07:02 UTC
In case of emulators/wine portlint -C issues a FATAL error:

  FATAL: Makefile: the last line of Makefile has to be .include <bsd.port(.post).mk>

This is general correct, however that port's Makefile ends with

  .ifndef WINE_SLAVE_BUILD
  .include <bsd.port.post.mk>
  .endif

I suggest to also allow for .endif as the last line of a Makefile.
Comment 1 Joe Marcus Clarke freebsd_committer freebsd_triage 2020-11-29 17:25:46 UTC
Fixed in 2.19.3.