Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149174332
D9210.1789627467.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D9210.1789627467.diff
View Options
Index: Mk/bsd.port.mk
===================================================================
--- Mk/bsd.port.mk
+++ Mk/bsd.port.mk
@@ -1144,6 +1144,23 @@
.endif
_EXPORTED_VARS+= OSVERSION
+.if ${OPSYS} == FreeBSD && (${OSVERSION} < 1003000 || (${OSVERSION} >= 1100000 && ${OSVERSION} < 1100122))
+_UNSUPPORTED_SYSTEM_MESSAGE= 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.
+. 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} "No support will be provided if you silence this message by defining ALLOW_UNSUPPORTED_SYSTEM." | ${FMT} 75 79
+ @${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 +5185,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
Thu, Sep 17, 6:44 AM (22 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29722839
Default Alt Text
D9210.1789627467.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