From 3b8279611688f3898c5b6c5e76e0062d7fbed123 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Mon, 9 May 2022 02:32:48 +0200 Subject: app-text/kjots: Fix build with kde-apps/akonadi-notes-22.04.0 Closes: https://bugs.gentoo.org/840272 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner --- .../kjots/files/kjots-5.1.0-akonadi-22.04.0.patch | 87 ++++++++++++++++++++++ app-text/kjots/kjots-5.1.0-r2.ebuild | 1 + 2 files changed, 88 insertions(+) create mode 100644 app-text/kjots/files/kjots-5.1.0-akonadi-22.04.0.patch diff --git a/app-text/kjots/files/kjots-5.1.0-akonadi-22.04.0.patch b/app-text/kjots/files/kjots-5.1.0-akonadi-22.04.0.patch new file mode 100644 index 000000000000..a5ef2cc2cdf9 --- /dev/null +++ b/app-text/kjots/files/kjots-5.1.0-akonadi-22.04.0.patch @@ -0,0 +1,87 @@ +From b9d91006eb3ca1c6e495d0f3d1cc32775a26538c Mon Sep 17 00:00:00 2001 +From: Nicolas Fella +Date: Tue, 1 Mar 2022 23:33:19 +0100 +Subject: [PATCH] Fix akonadi includes + +--- + src/kjotsmodel.cpp | 2 +- + src/kjotswidget.cpp | 2 +- + src/noteshared/notecreatorandselector.cpp | 2 +- + src/noteshared/standardnoteactionmanager.cpp | 2 +- + 4 files changed, 4 insertions(+), 4 deletions(-) + + +From 17f373bb728cbc553c5fe644563ebd015eda4075 Mon Sep 17 00:00:00 2001 +From: Wolfgang Bauer +Date: Fri, 1 Apr 2022 08:00:34 +0000 +Subject: [PATCH] Fix build with Akonadi 21.12 + +--- + src/kjotsmodel.cpp | 4 ++++ + src/kjotswidget.cpp | 6 +++++- + src/noteshared/notecreatorandselector.cpp | 4 ++++ + src/noteshared/standardnoteactionmanager.cpp | 4 ++++ + 4 files changed, 17 insertions(+), 1 deletion(-) + +diff -u a/src/kjotsmodel.cpp b/src/kjotsmodel.cpp +--- a/src/kjotsmodel.cpp ++++ b/src/kjotsmodel.cpp +@@ -21,7 +21,11 @@ + #include + #include + #endif ++#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 19, 41) ++#include ++#else + #include ++#endif + + #include + #include +diff -u a/src/kjotswidget.cpp b/src/kjotswidget.cpp +--- a/src/kjotswidget.cpp ++++ b/src/kjotswidget.cpp +@@ -34,8 +34,12 @@ + #include + + // Akonadi +-#include + #include ++#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 19, 41) ++#include ++#else ++#include ++#endif + #if AKONADI_VERSION >= QT_VERSION_CHECK(5, 18, 41) + #include + #include +diff -u a/src/noteshared/notecreatorandselector.cpp b/src/noteshared/notecreatorandselector.cpp +--- a/src/noteshared/notecreatorandselector.cpp ++++ b/src/noteshared/notecreatorandselector.cpp +@@ -24,7 +24,11 @@ + #include + #include + #endif ++#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 19, 41) ++#include ++#else + #include ++#endif + + #include "noteshared_debug.h" + +diff -u a/src/noteshared/standardnoteactionmanager.cpp b/src/noteshared/standardnoteactionmanager.cpp +--- a/src/noteshared/standardnoteactionmanager.cpp ++++ b/src/noteshared/standardnoteactionmanager.cpp +@@ -25,7 +25,11 @@ + #include + #include + #endif ++#if AKONADI_VERSION >= QT_VERSION_CHECK(5, 19, 41) ++#include ++#else + #include ++#endif + + #include + #include diff --git a/app-text/kjots/kjots-5.1.0-r2.ebuild b/app-text/kjots/kjots-5.1.0-r2.ebuild index a948d3a45db6..7ef5fe968253 100644 --- a/app-text/kjots/kjots-5.1.0-r2.ebuild +++ b/app-text/kjots/kjots-5.1.0-r2.ebuild @@ -51,4 +51,5 @@ PATCHES=( "${FILESDIR}/${P}-missing-lib.patch" "${FILESDIR}/${P}-akonadi-21.12.0.patch" # bug 830580 "${FILESDIR}/${P}-speech-optional.patch" # bug 835128 + "${FILESDIR}/${P}-akonadi-22.04.0.patch" # bug 840272 ) -- cgit v1.2.3-65-gdbad