commit: b5de8013260421ec8a4fe894cbb25812539c7994 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sun Jul 21 10:45:03 2019 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Jul 22 09:28:14 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5de8013
python-any-r1.eclass: Declare PYTHON_REQUIRED_USE to catch errors Closes: https://github.com/gentoo/gentoo/pull/12492 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> eclass/python-any-r1.eclass | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass index 7a91507a600..db8f23647cd 100644 --- a/eclass/python-any-r1.eclass +++ b/eclass/python-any-r1.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: python-any-r1.eclass @@ -171,6 +171,12 @@ _python_any_set_globals() { PYTHON_DEPS=${deps} readonly PYTHON_DEPS fi + + if [[ ! ${PYTHON_REQUIRED_USE+1} ]]; then + # fake var to catch mistaken usage + PYTHON_REQUIRED_USE='I-DO-NOT-EXIST-IN-PYTHON-ANY-R1' + readonly PYTHON_REQUIRED_USE + fi } _python_any_set_globals unset -f _python_any_set_globals