summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2014-12-27 18:07:31 +0000
committerMichał Górny <mgorny@gentoo.org>2014-12-27 18:07:31 +0000
commitd706c1b074fcc8879fe215df8cc02b5f34f715fc (patch)
tree55b6fc514c865843e9b0d1e98da54368d5b2b973 /eclass/waf-utils.eclass
parentVersion bump, fixes bug 529314, update gstreamer dependency to 1.0 for bug 52... (diff)
downloadgentoo-2-d706c1b074fcc8879fe215df8cc02b5f34f715fc.tar.gz
gentoo-2-d706c1b074fcc8879fe215df8cc02b5f34f715fc.tar.bz2
gentoo-2-d706c1b074fcc8879fe215df8cc02b5f34f715fc.zip
Add new API warnings.
Diffstat (limited to 'eclass/waf-utils.eclass')
-rw-r--r--eclass/waf-utils.eclass14
1 files changed, 13 insertions, 1 deletions
diff --git a/eclass/waf-utils.eclass b/eclass/waf-utils.eclass
index 5a70d4a7713e..d291154be637 100644
--- a/eclass/waf-utils.eclass
+++ b/eclass/waf-utils.eclass
@@ -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