commit: 156f05d94939bfc31b0915977aa2400b41046114 Author: David Seifert <soap <AT> gentoo <DOT> org> AuthorDate: Sun Sep 24 09:07:35 2017 +0000 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> CommitDate: Sun Sep 24 11:15:08 2017 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=156f05d9
cmake-utils.eclass: Add QA check that cmake-utils_src_prepare was run Closes: https://github.com/gentoo/gentoo/pull/4757 eclass/cmake-utils.eclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index dbb12f25f3..c6a52b8d9a 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -441,6 +441,8 @@ cmake-utils_src_prepare() { fi popd > /dev/null || die + + _CMAKE_UTILS_SRC_PREPARE_HAS_RUN=1 } # @VARIABLE: mycmakeargs @@ -465,6 +467,10 @@ cmake-utils_src_prepare() { cmake-utils_src_configure() { debug-print-function ${FUNCNAME} "$@" + if [[ ! ${_CMAKE_UTILS_SRC_PREPARE_HAS_RUN} ]]; then + eqawarn "cmake-utils_src_prepare has not been run, please open a bug on https://bugs.gentoo.org/" + fi + [[ ${EAPI} == 5 ]] && _cmake_cleanup_cmake _cmake_check_build_dir