pull in crash workaround (#1508924, kde#385413)

epel9
Rex Dieter 7 years ago
parent 09e3ad5fb3
commit 8614cefd4f

@ -0,0 +1,20 @@
Index: src/utils/kateglobal.cpp
===================================================================
--- a/src/utils/kateglobal.cpp
+++ b/src/utils/kateglobal.cpp
@@ -99,6 +99,15 @@
// remember this
staticInstance = this;
+#if QT_VERSION < QT_VERSION_CHECK(5, 9, 1)
+ // disable the QML JIT compiler as a protection against an unknown bug
+ // in Qt's V4 engine which can provoke a crash in certain of our scripts.
+ // See https://bugreports.qt.io/browse/QTBUG-63045
+ // and https://bugs.kde.org/show_bug.cgi?id=385413
+ qputenv("QV4_FORCE_INTERPRETER", QByteArrayLiteral("1"));
+ qCDebug(LOG_KTE) << "QV4_FORCE_INTERPRETER set to 1";
+#endif
+
// init libgit2, we require at least 0.22 which has this function!
#if LIBGIT2_FOUND
git_libgit2_init();

@ -9,7 +9,7 @@
Name: kf5-%{framework} Name: kf5-%{framework}
Version: 5.39.0 Version: 5.39.0
Release: 1%{?dist} Release: 1%{?dist}.1
Summary: KDE Frameworks 5 Tier 3 with advanced embeddable text editor Summary: KDE Frameworks 5 Tier 3 with advanced embeddable text editor
License: LGPLv2+ License: LGPLv2+
@ -26,6 +26,10 @@ Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framewo
## upstream patches ## upstream patches
## upstreamable patches
# https://phabricator.kde.org/D8544
Patch100: D8544.diff
# filter plugin provides # filter plugin provides
%global __provides_exclude_from ^(%{_kf5_qtplugindir}/.*\\.so)$ %global __provides_exclude_from ^(%{_kf5_qtplugindir}/.*\\.so)$
@ -141,6 +145,9 @@ make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||:
%changelog %changelog
* Thu Nov 02 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.39.0-1.1
- pull in crash workaround (#1508924, kde#385413)
* Sun Oct 08 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.39.0-1 * Sun Oct 08 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.39.0-1
- 5.39.0 - 5.39.0

Loading…
Cancel
Save