Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.port.mk
Show First 20 Lines • Show All 1,138 Lines • ▼ Show 20 Lines | |||||
.elif exists(${SRC_BASE}/sys/sys/param.h) | .elif exists(${SRC_BASE}/sys/sys/param.h) | ||||
OSVERSION!= ${AWK} '/^\#define[[:blank:]]__FreeBSD_version/ {print $$3}' < ${SRC_BASE}/sys/sys/param.h | OSVERSION!= ${AWK} '/^\#define[[:blank:]]__FreeBSD_version/ {print $$3}' < ${SRC_BASE}/sys/sys/param.h | ||||
.else | .else | ||||
.error Unable to determine OS version. Either define OSVERSION, install /usr/include/sys/param.h or define SRC_BASE. | .error Unable to determine OS version. Either define OSVERSION, install /usr/include/sys/param.h or define SRC_BASE. | ||||
.endif | .endif | ||||
.endif | .endif | ||||
_EXPORTED_VARS+= OSVERSION | _EXPORTED_VARS+= OSVERSION | ||||
.if ${OPSYS} == FreeBSD # && (${OSVERSION} < 1003000 || (${OSVERSION} >= 1100000 && ${OSVERSION} < 1100122)) | |||||
marino: I assume this line is what you were thinking about for DragonFly support.
DFLYVERSION is the… | |||||
_UNSUPPORTED_SYSTEM_MESSAGE= ${OPSYS} version you are running is not supported by the Ports Collection, no port is guaranteed to build. Please upgrade to a supported release or, as a last resort, use a ports tree snapshot dated within your system support lifetime. | |||||
Done Inline Actionss/to supported/to a supported/ bcr: s/to supported/to a supported/ | |||||
. if defined(ALLOW_UNSUPPORTED_SYSTEM) | |||||
WARNING+= "${_UNSUPPORTED_SYSTEM_MESSAGE}" | |||||
. else | |||||
Done Inline ActionsI think we can make the text simpler and clearer. I don't like suggesting that people pull an old snapshot. Then it looks like an official recommendation, and then we have to do tech support for people who have a 5 y/o ports tree who are just following instructions. I'd recommend this: Ports Collection support for your ${OPSYS} version has ended, and no ports are guaranteed to build on this system. Please upgrade to a supported release. adamw: I think we can make the text simpler and clearer. I don't like suggesting that people pull an… | |||||
UNSUPPORTED_SYSTEM_ERROR= ${_UNSUPPORTED_SYSTEM_MESSAGE} You may define ALLOW_UNSUPPORTED_SYSTEM to proceed, but you have been warned. | |||||
Not Done Inline ActionsThis should not be using IGNORE but a target in the sanity sequence ending with ${FALSE}. mat: This should not be using IGNORE but a target in the sanity sequence ending with ${FALSE}. | |||||
matUnsubmitted Not Done Inline ActionsWhy don't you put the target directly here ? mat: Why don't you put the target directly here ? | |||||
AMDmi3AuthorUnsubmitted Not Done Inline ActionsHm, I'm got an idea there's specific place for these targets. AMDmi3: Hm, I'm got an idea there's specific place for these targets. | |||||
matUnsubmitted Not Done Inline ActionsYou could also move the whole block to where that place was :-) mat: You could also move the whole block to where that place was :-) | |||||
. endif | |||||
.endif | |||||
# Convert OSVERSION to major release number | # Convert OSVERSION to major release number | ||||
_OSVERSION_MAJOR= ${OSVERSION:C/([0-9]?[0-9])([0-9][0-9])[0-9]{3}/\1/} | _OSVERSION_MAJOR= ${OSVERSION:C/([0-9]?[0-9])([0-9][0-9])[0-9]{3}/\1/} | ||||
# Sanity checks for chroot/jail building. | # Sanity checks for chroot/jail building. | ||||
# Skip if OSVERSION specified on cmdline for testing. Only works for bmake. | # Skip if OSVERSION specified on cmdline for testing. Only works for bmake. | ||||
.if !defined(.MAKEOVERRIDES) || !${.MAKEOVERRIDES:MOSVERSION} | .if !defined(.MAKEOVERRIDES) || !${.MAKEOVERRIDES:MOSVERSION} | ||||
Not Done Inline ActionsThat wording is awkward. I'd suggest this: No support will be provided if you silence this message by defining ALLOW_UNSUPPORTED_SYSTEM. adamw: That wording is awkward. I'd suggest this:
```No support will be provided if you silence this… | |||||
.if ${_OSVERSION_MAJOR} != ${_OSRELEASE:R} | .if ${_OSVERSION_MAJOR} != ${_OSRELEASE:R} | ||||
.error UNAME_r (${_OSRELEASE}) and OSVERSION (${OSVERSION}) do not agree on major version number. | .error UNAME_r (${_OSRELEASE}) and OSVERSION (${OSVERSION}) do not agree on major version number. | ||||
.elif ${_OSVERSION_MAJOR} != ${OSREL:R} | .elif ${_OSVERSION_MAJOR} != ${OSREL:R} | ||||
.error OSREL (${OSREL}) and OSVERSION (${OSVERSION}) do not agree on major version number. | .error OSREL (${OSREL}) and OSVERSION (${OSVERSION}) do not agree on major version number. | ||||
.endif | .endif | ||||
.endif | .endif | ||||
# Only define tools here (for transition period with between pkg tools) | # Only define tools here (for transition period with between pkg tools) | ||||
▲ Show 20 Lines • Show All 3,989 Lines • ▼ Show 20 Lines | |||||
.for m in ${DEV_ERROR} | .for m in ${DEV_ERROR} | ||||
@${ECHO_MSG} "${m}" | @${ECHO_MSG} "${m}" | ||||
.endfor | .endfor | ||||
@${ECHO_MSG} | @${ECHO_MSG} | ||||
@${FALSE} | @${FALSE} | ||||
.endif | .endif | ||||
.endif #DEVELOPER | .endif #DEVELOPER | ||||
.if defined(UNSUPPORTED_SYSTEM_ERROR) | |||||
show-unsupported-system-error: | |||||
@${ECHO_MSG} "/!\\ ERROR: /!\\" | |||||
@${ECHO_MSG} "${UNSUPPORTED_SYSTEM_ERROR}" | ${FMT} 75 79 | |||||
@${FALSE} | |||||
.endif | |||||
# Please note that the order of the following targets is important, and | # Please note that the order of the following targets is important, and | ||||
# should not be modified. | # should not be modified. | ||||
_TARGETS_STAGES= SANITY PKG FETCH EXTRACT PATCH CONFIGURE BUILD INSTALL TEST PACKAGE STAGE | _TARGETS_STAGES= SANITY PKG FETCH EXTRACT PATCH CONFIGURE BUILD INSTALL TEST PACKAGE STAGE | ||||
# Define the SEQ of actions to take when each target is ran, and which targets | # Define the SEQ of actions to take when each target is ran, and which targets | ||||
# it depends on before running its SEQ. | # it depends on before running its SEQ. | ||||
# | # | ||||
# Main target has a priority of 500, pre-target 300, post-target 700, | # Main target has a priority of 500, pre-target 300, post-target 700, | ||||
# target-depends 150. Other targets are spaced in between those | # target-depends 150. Other targets are spaced in between those | ||||
# | # | ||||
# If you change the pre-foo and post-foo values here, go and keep them in sync | # If you change the pre-foo and post-foo values here, go and keep them in sync | ||||
# in _OPTIONS_TARGETS in bsd.options.mk | # in _OPTIONS_TARGETS in bsd.options.mk | ||||
_SANITY_SEQ= 050:post-chroot 100:pre-everything 150:check-makefile \ | _SANITY_SEQ= 050:post-chroot 100:pre-everything \ | ||||
125:show-unsupported-system-error 150:check-makefile \ | |||||
200:show-warnings 210:show-dev-warnings 220:show-dev-errors \ | 200:show-warnings 210:show-dev-warnings 220:show-dev-errors \ | ||||
250:check-categories 300:check-makevars \ | 250:check-categories 300:check-makevars \ | ||||
350:check-desktop-entries 400:check-depends \ | 350:check-desktop-entries 400:check-depends \ | ||||
450:identify-install-conflicts 500:check-deprecated \ | 450:identify-install-conflicts 500:check-deprecated \ | ||||
550:check-vulnerable 600:check-license 650:check-config \ | 550:check-vulnerable 600:check-license 650:check-config \ | ||||
700:buildanyway-message 750:options-message ${_USES_sanity} | 700:buildanyway-message 750:options-message ${_USES_sanity} | ||||
_PKG_DEP= check-sanity | _PKG_DEP= check-sanity | ||||
▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines |
I assume this line is what you were thinking about for DragonFly support.
DFLYVERSION is the equivalent of OSVERSION, but it's only defined on Dports. Still, this should work:
Note that I put parentheses around the original condition.