Skip to content

Commit

Permalink
Follow-up the check added in r383191 for validating the first CATEGOR…
Browse files Browse the repository at this point in the history
…Y so it

does not error when using ports outside of PORTSDIR and the general ports
directory structure.

With hat:	portmgr
Tested by:	amdmi3, danfe
Reported by:	amdmi3
  • Loading branch information
bdrewery committed Apr 9, 2015
1 parent 2aab74e commit f5d7f9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Mk/bsd.sanity.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ WARNING+= "WITH_NEW_XORG and WITHOUT_NEW_XORG knobs were removed and have no eff
WARNING+= "WITH_KMS was removed and has no effect"
.endif

.if ${.CURDIR:M${PORTSDIR}*}
.if ${.CURDIR:H:T} != ${PKGCATEGORY}
DEV_ERROR+= "The first entry in CATEGORIES should be the directory where the port lives"
.endif
.else
WARNING+= "Not validating first entry in CATEGORIES due to being outside of PORTSDIR. Please ensure this is proper when committing."
.endif

#.if defined(WITHOUT_X11)
#WARNING+= "WITHOUT_X11 is deprecated use X11 option instead"
Expand Down

0 comments on commit f5d7f9e

Please sign in to comment.