Add new API warnings.
authorMichał Górny <mgorny@gentoo.org>
Sat, 27 Dec 2014 18:07:31 +0000 (18:07 +0000)
committerMichał Górny <mgorny@gentoo.org>
Sat, 27 Dec 2014 18:07:31 +0000 (18:07 +0000)
eclass/ChangeLog
eclass/waf-utils.eclass

index 7d86ffddc5791f1a455b8ac4fff080ae0128299e..5f6d6a6df69ec9c69ab199d2b3c44e57ab5ecef3 100644 (file)
@@ -1,6 +1,9 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1474 2014/12/26 11:42:21 kensington Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1475 2014/12/27 18:07:31 mgorny Exp $
+
+  27 Dec 2014; Michał Górny <mgorny@gentoo.org> waf-utils.eclass:
+  Add new API warnings.
 
   26 Dec 2014; Michael Palimaka <kensington@gentoo.org> kde4-base.eclass:
   Sync with KDE overlay.
index 5a70d4a7713ed828e7f742bdc5afcbdb736f556e..d291154be637f857b1c05dd99bc2169060fe8f85 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/waf-utils.eclass,v 1.20 2014/12/25 23:35:18 eva Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/waf-utils.eclass,v 1.21 2014/12/27 18:07:31 mgorny Exp $
 
 # @ECLASS: waf-utils.eclass
 # @MAINTAINER:
@@ -41,6 +41,18 @@ DEPEND="${DEPEND}
 waf-utils_src_configure() {
        debug-print-function ${FUNCNAME} "$@"
 
+       if [[ ! ${_PYTHON_ANY_R1} && ! ${_PYTHON_SINGLE_R1} && ! ${_PYTHON_R1} ]]; then
+               eqawarn "Using waf-utils.eclass without any python-r1 suite eclass is not supported"
+               eqawarn "and will be banned on 2015-01-24. Please make sure to configure and inherit"
+               eqawarn "appropriate -r1 eclass. For more information and examples, please see:"
+               eqawarn "    https://wiki.gentoo.org/wiki/Project:Python/waf-utils_integration"
+       elif [[ ${PYTHON_REQ_USE} != *threads* ]]; then
+               eqawarn "Waf requires threading support in Python. To accomodate this requirement,"
+               eqawarn "please add 'threads(+)' to PYTHON_REQ_USE variable (above inherit line)."
+               eqawarn "For more information and examples, please see:"
+               eqawarn "    https://wiki.gentoo.org/wiki/Project:Python/waf-utils_integration"
+       fi
+
        local libdir=""
 
        # @ECLASS-VARIABLE: WAF_BINARY