aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2017-12-12 20:31:10 +0800
committermat <mat@FreeBSD.org>2017-12-12 20:31:10 +0800
commit158a56f3b15afc9a55defb6acc10ecdf322b5287 (patch)
tree0e8209fc09d9c8cfdd3be05858c45c5f3f9200bc /Mk
parentc9b2cbc87e77d5fc9851c9ec342e63777c251219 (diff)
downloadfreebsd-ports-gnome-158a56f3b15afc9a55defb6acc10ecdf322b5287.tar.gz
freebsd-ports-gnome-158a56f3b15afc9a55defb6acc10ecdf322b5287.tar.zst
freebsd-ports-gnome-158a56f3b15afc9a55defb6acc10ecdf322b5287.zip
Add a DEV_WARNING about some hypotetical case.
Sponsored by: Absolight
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Uses/python.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mk/Uses/python.mk b/Mk/Uses/python.mk
index a27e4bed9bd2..690113b13a52 100644
--- a/Mk/Uses/python.mk
+++ b/Mk/Uses/python.mk
@@ -566,6 +566,9 @@ RUN_DEPENDS+= cython-${PYTHON_VER}:lang/cython@${PY_FLAVOR}
.endif
.if defined(_PYTHON_FEATURE_CONCURRENT)
+.if !defined(_PYTHON_FEATURE_FLAVORS) && (${_PYTHON_VERSION_MINIMUM:M3*} || ${_PYTHON_VERSION_MAXIMUM:M2*})
+DEV_WARNING+= "USE_PYTHON=concurrent when only one of Python 2 or 3 is supported AND not using flavors does not make any sense"
+.endif
_USES_POST+= uniquefiles:dirs
.if defined(_PYTHON_FEATURE_FLAVORS) && ${FLAVOR} == ${FLAVORS:[1]}
UNIQUE_DEFAULT_LINKS= yes