Re-adding pushd/popd until we figure out how to make it consistent
across the eclass.
Bug: https://bugs.gentoo.org/704524
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
cmake_src_prepare() {
debug-print-function ${FUNCNAME} "$@"
+ pushd "${S}" > /dev/null || die
+
default_src_prepare
_cmake_check_build_dir
# Remove dangerous things.
_cmake_modify-cmakelists
+ popd > /dev/null || die
+
# make ${S} read-only in order to detect broken build-systems
if [[ ${CMAKE_QA_SRC_DIR_READONLY} && ! ${CMAKE_IN_SOURCE_BUILD} ]]; then
chmod -R a-w "${S}"