Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149065189
D9210.id24110.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D9210.id24110.diff
View Options
Index: Mk/bsd.port.mk
===================================================================
--- Mk/bsd.port.mk
+++ Mk/bsd.port.mk
@@ -1144,6 +1144,25 @@
.endif
_EXPORTED_VARS+= OSVERSION
+.if ${OPSYS} == FreeBSD && (${OSVERSION} < 1003000 || (${OSVERSION} >= 1100000 && ${OSVERSION} < 1100122))
+_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.
+. if defined(ALLOW_UNSUPPORTED_SYSTEM)
+WARNING+= "${_UNSUPPORTED_SYSTEM_MESSAGE}"
+. else
+show-unsupported-system-error:
+ @${ECHO_MSG} "/!\\ ERROR: /!\\"
+ @${ECHO_MSG}
+ @${ECHO_MSG} "${_UNSUPPORTED_SYSTEM_MESSAGE}" | ${FMT} 75 79
+ @${ECHO_MSG}
+ @${ECHO_MSG} "You may define ALLOW_UNSUPPORTED_SYSTEM to proceed, but you have been warned."
+ @${ECHO_MSG}
+ @${FALSE}
+. endif
+.endif
+
# Convert OSVERSION to major release number
_OSVERSION_MAJOR= ${OSVERSION:C/([0-9]?[0-9])([0-9][0-9])[0-9]{3}/\1/}
# Sanity checks for chroot/jail building.
@@ -5168,7 +5187,8 @@
# If you change the pre-foo and post-foo values here, go and keep them in sync
# 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 \
250:check-categories 300:check-makevars \
350:check-desktop-entries 400:check-depends \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 23, 2:29 AM (2 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30153725
Default Alt Text
D9210.id24110.diff (1 KB)
Attached To
Mode
D9210: Explicitly warn users if their system is not supported
Attached
Detach File
Event Timeline
Log In to Comment