audio/teamspeak3-server: unbreak on 11-STABLE PR: 212237 Reported by: Jonathan Price <freebsd@jonathanprice.org> Submitted by: ultima1252@gmail.com (maintainer) Reviewed by: matthew Approved by: matthew (mentor) Differential Revision: https://reviews.freebsd.org/D9170
Details
- Reviewers
matthew - Commits
- rP431501: audio/teamspeak3-server: unbreak on 11-STABLE
Diff Detail
- Repository
- rP FreeBSD ports repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Have you tested this ? Because it cannot possibly work, OSVERSION is only defined after bsd.port.options.mk is included. (Testing in poudriere won't work, it defines OSVERSION in the environement to fake things up.)
You need to move this lower in the Makefile and change it to something like:
.if OSVERSION > 110000 && OSVERSION < <your version> BROKEN= .endif
Missing the PR number?
audio/teamspeak3-server/Makefile | ||
---|---|---|
23 ↗ | (On Diff #23974) | This doesn't work -- it's too early to reference ${OSVERSION} here. Has to be after the inclusion of bsd.ports.pre.mk or bsd.port.options.mk Also, probably better to use the style: .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1100000 && ${OSVERSION} < 1100507 rather than mixing an explicit test against OSVERSION with the 'BROKEN_FreeBSD_11' form. |
The port is marked restricted, so it wouldn't build under poudriere even if it was syntactically correct.
fix and switch to a single version check mechanism
I didn't test this previously because of the RESTRICTED, but I tested the version just now with LICENSE* and RESTRICTED commented out and it works.