[neon/extras/itinerary/Neon/unstable] debian/patches: initialise kcrash

Jonathan Riddell null at kde.org
Mon Jun 7 18:13:47 BST 2021


Git commit 2877c9da72aa8fe86935e48902ab60d47d92ebd3 by Jonathan Riddell.
Committed on 07/06/2021 at 17:13.
Pushed by jriddell into branch 'Neon/unstable'.

initialise kcrash

M  +36   -16   debian/patches/kcrash.diff

https://invent.kde.org/neon/extras/itinerary/commit/2877c9da72aa8fe86935e48902ab60d47d92ebd3

diff --git a/debian/patches/kcrash.diff b/debian/patches/kcrash.diff
index ba8c353..a1cd823 100644
--- a/debian/patches/kcrash.diff
+++ b/debian/patches/kcrash.diff
@@ -1,19 +1,7 @@
-Index: itinerary/src/app/CMakeLists.txt
-===================================================================
---- itinerary.orig/src/app/CMakeLists.txt
-+++ itinerary/src/app/CMakeLists.txt
-@@ -80,6 +80,7 @@ target_link_libraries(itinerary-app PRIV
-     itinerary
-     KOSMIndoorMap
-     Qt5::QuickControls2
-+    KF5::Crash
- )
- if (ANDROID)
-     target_include_directories(itinerary-app PRIVATE ${Qt5Core_PRIVATE_INCLUDE_DIRS})
-Index: itinerary/CMakeLists.txt
-===================================================================
---- itinerary.orig/CMakeLists.txt
-+++ itinerary/CMakeLists.txt
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ac8ad0b..603a0ca 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
 @@ -55,7 +55,7 @@ endif()
  # build-time dependencies
  find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS Test Quick Positioning Location QuickControls2)
@@ -23,3 +11,35 @@ Index: itinerary/CMakeLists.txt
  find_package(KF5 ${KF5_MIN_VERSION} OPTIONAL_COMPONENTS Holidays NetworkManagerQt)
  find_package(KPimPkPass CONFIG REQUIRED)
  find_package(KPimItinerary 5.17.41 CONFIG REQUIRED)
+diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt
+index b82586c..037b8ba 100644
+--- a/src/app/CMakeLists.txt
++++ b/src/app/CMakeLists.txt
+@@ -80,6 +80,7 @@ target_link_libraries(itinerary-app PRIVATE
+     itinerary
+     KOSMIndoorMap
+     Qt5::QuickControls2
++    KF5::Crash
+ )
+ if (ANDROID)
+     target_include_directories(itinerary-app PRIVATE ${Qt5Core_PRIVATE_INCLUDE_DIRS})
+diff --git a/src/app/main.cpp b/src/app/main.cpp
+index b02a436..100a78a 100644
+--- a/src/app/main.cpp
++++ b/src/app/main.cpp
+@@ -53,6 +53,7 @@
+ #include <KLocalizedString>
+ 
+ #include <KAboutData>
++#include <KCrash>
+ 
+ #include <QQuickStyle>
+ #include <QQmlApplicationEngine>
+@@ -215,6 +216,7 @@ int main(int argc, char **argv)
+     parser.addPositionalArgument(QStringLiteral("file"), i18n("PkPass or JSON-LD file to import."));
+     parser.process(app);
+     aboutData.processCommandLine(&parser);
++    KCrash::initialize();
+ 
+ #ifndef Q_OS_ANDROID
+     KDBusService service(KDBusService::Unique);


More information about the Neon-commits mailing list