epel8
Rex Dieter 6 years ago
parent d01964b193
commit 67dadfd9e4

@ -1,16 +0,0 @@
diff --git a/src/kcrash.cpp b/src/kcrash.cpp
--- a/src/kcrash.cpp
+++ b/src/kcrash.cpp
@@ -135,7 +135,10 @@
qCDebug(LOG_KCRASH) << "KCrash disabled through environment.";
}
- KCrash::setApplicationFilePath(QCoreApplication::applicationFilePath());
+ if (QCoreApplication::instance())
+ KCrash::setApplicationFilePath(QCoreApplication::applicationFilePath());
+ else
+ qWarning() << "This process needs a QCoreApplication instance in order to use KCrash";
s_coreConfig(); // Initialize.
}

@ -2,7 +2,7 @@
Name: kf5-%{framework} Name: kf5-%{framework}
Version: 5.51.0 Version: 5.51.0
Release: 2%{?dist} Release: 3%{?dist}
Summary: KDE Frameworks 5 Tier 2 addon for handling application crashes Summary: KDE Frameworks 5 Tier 2 addon for handling application crashes
License: LGPLv2+ License: LGPLv2+
@ -18,8 +18,6 @@ URL: https://cgit.kde.org/%{framework}.git
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz
## upstream patches ## upstream patches
# https://phabricator.kde.org/D16183
Patch1: https://phabricator.kde.org/file/data/tyfruhevy6a3jhg5ns7p/PHID-FILE-6lgblwlrp6pq6ziqhjjc/D16183.diff
BuildRequires: extra-cmake-modules >= %{majmin} BuildRequires: extra-cmake-modules >= %{majmin}
BuildRequires: kf5-kcoreaddons-devel >= %{majmin} BuildRequires: kf5-kcoreaddons-devel >= %{majmin}
@ -78,6 +76,9 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%changelog %changelog
* Sun Oct 14 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.51.0-3
- respin
* Sun Oct 14 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.51.0-2 * Sun Oct 14 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.51.0-2
- KCrash: fix crash when used in an app without QCoreApplication - KCrash: fix crash when used in an app without QCoreApplication

@ -1 +1 @@
SHA512 (kcrash-5.51.0.tar.xz) = 510dd18e26d0991ded9449db1d6a76df500b9b0d8c5d5b7ffe718fa84399b85f33b944caea9591d61de9e0413c9f472ee5b6079bda41c0314a81eb9ca2e7ad6c SHA512 (kcrash-5.51.0.tar.xz) = 7945fca845f019f847fbef85de4934556da2183be5a2e48ae3dc0b71f1a0e5aa4e21a65ca9fcdbd7aab02aa36cb125b14768d34b7f3fd49f2666d3d8377d9356

Loading…
Cancel
Save