diff options
author | 2020-01-03 22:23:18 +0100 | |
---|---|---|
committer | 2020-01-03 22:29:52 +0100 | |
commit | d3aad02d9011648f04788acfd9672bb8a101b104 (patch) | |
tree | a289999d3374a4cfe14758faa842251fa03af9eb /eclass | |
parent | net-im/coturn: remove unused user eclass (diff) | |
download | gentoo-d3aad02d9011648f04788acfd9672bb8a101b104.tar.gz gentoo-d3aad02d9011648f04788acfd9672bb8a101b104.tar.bz2 gentoo-d3aad02d9011648f04788acfd9672bb8a101b104.zip |
cmake.eclass: src_prepare: Revert to cmake-utils.eclass behaviour
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>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/cmake.eclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index 93ede2588c8c..b2b9ae879613 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -294,6 +294,8 @@ _cmake_modify-cmakelists() { cmake_src_prepare() { debug-print-function ${FUNCNAME} "$@" + pushd "${S}" > /dev/null || die + default_src_prepare _cmake_check_build_dir @@ -327,6 +329,8 @@ cmake_src_prepare() { # 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}" |