summaryrefslogtreecommitdiff
path: root/eclass/ecm.eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-04-18 23:07:25 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2020-04-18 23:13:45 +0200
commitbb97d066dd96c3fe812a091a5e70255fc110a955 (patch)
tree8dcea73cbacedf4db882b8f24788e7a2e67d5a50 /eclass/ecm.eclass
parent7acafaf0ece7642d95bff7821a8921485c16116a (diff)
downloadkde-bb97d066dd96c3fe812a091a5e70255fc110a955.tar.gz
kde-bb97d066dd96c3fe812a091a5e70255fc110a955.tar.bz2
kde-bb97d066dd96c3fe812a091a5e70255fc110a955.zip
ecm.eclass: Disable overzealous upstream disable-deprecated-before
Upstream detects .git directory in root CMakeLists.txt and adds aggressive definitions like -DQT_DISABLE_DEPRECATED_BEFORE=0x060000 which means it will frequently fail to build with newish Qt versions. Due to this we end up with the weird situation that stable branch fails to build even though inevitably much older release tarballs build fine. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass/ecm.eclass')
-rw-r--r--eclass/ecm.eclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/ecm.eclass b/eclass/ecm.eclass
index 12b31e4ef32..5724c745003 100644
--- a/eclass/ecm.eclass
+++ b/eclass/ecm.eclass
@@ -423,8 +423,14 @@ ecm_src_prepare() {
done
fi
- # limit playing field of locale stripping to kde-*/ categories
if [[ ${CATEGORY} = kde-* ]] ; then
+ # overzealous upstream disable-deprecated-before by .git dir detection
+ if [[ -e .git ]]; then
+ sed -e "/^if.*EXISTS.*CMAKE_SOURCE_DIR.*\.git/s/$/ # removed by ecm.eclass/" \
+ -e "/^if.*EXISTS.*CMAKE_SOURCE_DIR.*\.git/s/(.*)/(FALSE)/" \
+ -i CMakeLists.txt || die
+ fi
+
# always install unconditionally for kconfigwidgets - if you use
# language X as system language, and there is a combobox with language
# names, the translated language name for language Y is taken from