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