Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package kraft for openSUSE:Factory checked 
in at 2021-12-05 22:46:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kraft (Old)
 and      /work/SRC/openSUSE:Factory/.kraft.new.31177 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kraft"

Sun Dec  5 22:46:24 2021 rev:16 rq:935795 version:0.97

Changes:
--------
--- /work/SRC/openSUSE:Factory/kraft/kraft.changes      2021-08-18 
08:56:15.974949907 +0200
+++ /work/SRC/openSUSE:Factory/.kraft.new.31177/kraft.changes   2021-12-05 
22:47:20.325402124 +0100
@@ -1,0 +2,6 @@
+Wed Dec  1 11:18:22 UTC 2021 - Wolfgang Bauer <wba...@tmo.at>
+
+- Add Adapt-to-new-Akonadi-includes.patch to fix build with Akonadi
+  21.12
+
+-------------------------------------------------------------------

New:
----
  Adapt-to-new-Akonadi-includes.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kraft.spec ++++++
--- /var/tmp/diff_new_pack.gYsCIz/_old  2021-12-05 22:47:20.753400729 +0100
+++ /var/tmp/diff_new_pack.gYsCIz/_new  2021-12-05 22:47:20.753400729 +0100
@@ -53,6 +53,8 @@
 # PATCH-FEATURE-UPSTREAM use_qpdfview.path Open PDFs in qpdfview in appimages
 Patch0:         use_qpdfview.patch
 %endif
+# PATCH-FIX-UPSTREAM
+Patch1:         Adapt-to-new-Akonadi-includes.patch
 %if %{with akonadi}
 BuildRequires:  cmake(KF5AkonadiContact)
 %endif
@@ -71,6 +73,7 @@
 %if %{with qpdfview}
 %patch0 -p1
 %endif
+%patch1 -p1
 
 %build
 

++++++ Adapt-to-new-Akonadi-includes.patch ++++++
>From 13d46c8352e110cd6f90f1d88f89ec4dc2337bd2 Mon Sep 17 00:00:00 2001
From: "Friedrich W. H. Kossebau" <kosse...@kde.org>
Date: Mon, 4 Oct 2021 23:14:43 +0200
Subject: [PATCH] Adapt to new Akonadi includes in Akonadi 5.19

---
 src/addressprovider_akonadi.cpp | 15 ++++++++++++++-
 src/addressprovider_akonadi.h   |  8 +++++++-
 src/addressselectorwidget.cpp   |  6 ++++++
 3 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/src/addressprovider_akonadi.cpp b/src/addressprovider_akonadi.cpp
index edb9d0c..4a809a8 100644
--- a/src/addressprovider_akonadi.cpp
+++ b/src/addressprovider_akonadi.cpp
@@ -21,16 +21,29 @@
 #include <QDebug>
 
 #ifdef HAVE_AKONADI
+#include "akonadi/contact/contactsearchjob.h"
+#include <akonadi_version.h>
+#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41)
+#include <Akonadi/ItemFetchJob>
+#include <Akonadi/ItemFetchScope>
+
+#include <Akonadi/CollectionFetchJob>
+
+#include <Akonadi/ItemFetchJob>
+#include <Akonadi/ItemFetchScope>
+#include <Akonadi/EntityDisplayAttribute>
+#include <Akonadi/Control>
+#else
 #include <AkonadiCore/ItemFetchJob>
 #include <AkonadiCore/ItemFetchScope>
 
-#include "akonadi/contact/contactsearchjob.h"
 #include <AkonadiCore/CollectionFetchJob>
 
 #include <AkonadiCore/ItemFetchJob>
 #include <AkonadiCore/ItemFetchScope>
 #include <AkonadiCore/entitydisplayattribute.h>
 #include <AkonadiCore/control.h>
+#endif
 
 using namespace Akonadi;
 #endif
diff --git a/src/addressprovider_akonadi.h b/src/addressprovider_akonadi.h
index fde0f44..14f6aa2 100644
--- a/src/addressprovider_akonadi.h
+++ b/src/addressprovider_akonadi.h
@@ -25,9 +25,15 @@
 
 #ifdef HAVE_AKONADI
 #include <kjob.h>
+#include <akonadi/contact/contactstreemodel.h>
+#include <akonadi_version.h>
+#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41)
+#include <Akonadi/Session>
+#include <Akonadi/ChangeRecorder>
+#else
 #include <AkonadiCore/session.h>
 #include <AkonadiCore/changerecorder.h>
-#include <akonadi/contact/contactstreemodel.h>
+#endif
 #endif
 
 class QAbstractItemModel;
diff --git a/src/addressselectorwidget.cpp b/src/addressselectorwidget.cpp
index ad450c9..bf0c95d 100644
--- a/src/addressselectorwidget.cpp
+++ b/src/addressselectorwidget.cpp
@@ -37,9 +37,15 @@
 #include <kcontacts/contactgroup.h>
 
 #ifdef HAVE_AKONADI
+#include <akonadi_version.h>
+#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41)
+#include <Akonadi/EntityTreeModel>
+#include <Akonadi/EntityTreeView>
+#else
 #include <entitytreemodel.h>
 #include <entitytreeview.h>
 #endif
+#endif
 
 /* ==================================================================== */
 AddressSortProxyModel::AddressSortProxyModel(AddressProvider *provider, 
QObject *parent)

Reply via email to