commit:     08c20f933032c9fd7028ab28dc59c40d47f106c0
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 24 09:07:35 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Sep 24 10:34:29 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08c20f93

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 dbb12f25f3d..c6a52b8d9ae 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

Reply via email to