summaryrefslogtreecommitdiff
path: root/media-gfx/digikam/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-05-04 11:22:40 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-05-04 11:22:40 +0100
commitfe1c8b732bd548b699d4c2ef725f67f8b8c8911c (patch)
tree84c0b6ca01b7cb63c7d6e685a63823200ce1007f /media-gfx/digikam/files
parent7c7c2c9727d6b2ff30945b5aea0d575e1c406d8b (diff)
gentoo resync : 04.05.2018
Diffstat (limited to 'media-gfx/digikam/files')
-rw-r--r--media-gfx/digikam/files/digikam-5.7.0-kcalcore-1.patch44
-rw-r--r--media-gfx/digikam/files/digikam-5.7.0-kcalcore-2.patch79
-rw-r--r--media-gfx/digikam/files/digikam-5.7.0-kreadconfig5.patch28
-rw-r--r--media-gfx/digikam/files/digikam-5.7.0-mariadb-10.2-1.patch58
-rw-r--r--media-gfx/digikam/files/digikam-5.7.0-mariadb-10.2-2.patch117
-rw-r--r--media-gfx/digikam/files/digikam-5.7.0-qt-5.9.3.patch32
6 files changed, 0 insertions, 358 deletions
diff --git a/media-gfx/digikam/files/digikam-5.7.0-kcalcore-1.patch b/media-gfx/digikam/files/digikam-5.7.0-kcalcore-1.patch
deleted file mode 100644
index 9a9574fc982b..000000000000
--- a/media-gfx/digikam/files/digikam-5.7.0-kcalcore-1.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From 12ab7af4618f10d39d4a977e00a0e68a3aac9bd2 Mon Sep 17 00:00:00 2001
-From: Simon Frei <freisim93@gmail.com>
-Date: Wed, 13 Sep 2017 15:43:49 +0200
-Subject: calendar: Adjust to new KCalCore API (fixes CI)
-
----
- utilities/assistants/calendar/print/calsettings.cpp | 9 +++++++--
- 1 file changed, 7 insertions(+), 2 deletions(-)
-
-diff --git a/utilities/assistants/calendar/print/calsettings.cpp b/utilities/assistants/calendar/print/calsettings.cpp
-index b0bed5a..46e995d 100644
---- a/utilities/assistants/calendar/print/calsettings.cpp
-+++ b/utilities/assistants/calendar/print/calsettings.cpp
-@@ -31,12 +31,17 @@
- #include "digikam_debug.h"
- #include "calsystem.h"
-
--// KCalCore includes
-
- #ifdef HAVE_KCALENDAR
-+ // KCalCore includes
-+
- # include <kcalcore/icalformat.h>
- # include <kcalcore/filestorage.h>
- # include <kcalcore/memorycalendar.h>
-+
-+ // Qt includes
-+
-+# include <QTimeZone>
- #endif // HAVE_KCALENDAR
-
- namespace Digikam
-@@ -290,7 +295,7 @@ void CalSettings::loadSpecial(const QUrl& url, const QColor& color)
- return;
- }
-
-- KCalCore::MemoryCalendar::Ptr memCal(new KCalCore::MemoryCalendar(QString::fromLatin1("UTC")));
-+ KCalCore::MemoryCalendar::Ptr memCal(new KCalCore::MemoryCalendar(QTimeZone(0)));
- KCalCore::FileStorage::Ptr fileStorage(new KCalCore::FileStorage(memCal, url.toLocalFile(), new KCalCore::ICalFormat));
-
- qCDebug(DIGIKAM_GENERAL_LOG) << "Loading calendar from file " << url.toLocalFile();
---
-cgit v0.11.2
-
diff --git a/media-gfx/digikam/files/digikam-5.7.0-kcalcore-2.patch b/media-gfx/digikam/files/digikam-5.7.0-kcalcore-2.patch
deleted file mode 100644
index 7237b74a285f..000000000000
--- a/media-gfx/digikam/files/digikam-5.7.0-kcalcore-2.patch
+++ /dev/null
@@ -1,79 +0,0 @@
-From dad750fadc926b62603cc9d64009ee5072a46d97 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Daniel=20Vr=C3=A1til?= <dvratil@kde.org>
-Date: Wed, 13 Sep 2017 16:51:14 +0200
-Subject: Adapt to KCalCore API changes
-
-This change supports both old (pre-QDateTime) and new version.
-
-Differential Revision: https://phabricator.kde.org/D7802
-
-* asturm: Incorporated fix from d204022e191d9377874689bfe4c89f7b83998188
----
- CMakeLists.txt | 3 +++
- app/utils/digikam_config.h.cmake.in | 3 +++
- utilities/assistants/calendar/print/calsettings.cpp | 14 ++++++++++----
- 3 files changed, 16 insertions(+), 4 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 3ad686d..e2f28a7 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -174,6 +174,9 @@ find_package(KF5 ${CALENDAR_MIN_VERSION} QUIET
- OPTIONAL_COMPONENTS
- CalendarCore # For Calendar tool.
- )
-+if ("${KF5CalendarCore_VERSION}" VERSION_GREATER 5.6.40)
-+ set(HAVE_KCALENDAR_QDATETIME TRUE)
-+endif()
-
- if(ENABLE_AKONADICONTACTSUPPORT AND NOT KF5AkonadiContact_FOUND)
- set(ENABLE_KFILEMETADATASUPPORT OFF)
-diff --git a/app/utils/digikam_config.h.cmake.in b/app/utils/digikam_config.h.cmake.in
-index 8a2e8e5..ffd3a22 100644
---- a/app/utils/digikam_config.h.cmake.in
-+++ b/app/utils/digikam_config.h.cmake.in
-@@ -75,6 +75,9 @@
- /* Define to 1 if you have KCalendar core shared libraries installed */
- #cmakedefine HAVE_KCALENDAR 1
-
-+/* Define to 1 if you have KCalendar core shared libraries with QDateTime support installed */
-+#cmakedefine HAVE_KCALENDAR_QDATETIME 1
-+
- /* Define to 1 if Panorama tool is supported */
- #cmakedefine HAVE_PANORAMA 1
-
-diff --git a/utilities/assistants/calendar/print/calsettings.cpp b/utilities/assistants/calendar/print/calsettings.cpp
-index 46e995d..c6554ef 100644
---- a/utilities/assistants/calendar/print/calsettings.cpp
-+++ b/utilities/assistants/calendar/print/calsettings.cpp
-@@ -295,7 +295,13 @@ void CalSettings::loadSpecial(const QUrl& url, const QColor& color)
- return;
- }
-
-- KCalCore::MemoryCalendar::Ptr memCal(new KCalCore::MemoryCalendar(QTimeZone(0)));
-+#ifdef HAVE_KCALENDAR_QDATETIME
-+ KCalCore::MemoryCalendar::Ptr memCal(new KCalCore::MemoryCalendar(QTimeZone::utc()));
-+ using DateTime = QDateTime;
-+#else
-+ KCalCore::MemoryCalendar::Ptr memCal(new KCalCore::MemoryCalendar(QString::fromLatin1("UTC")));
-+ using DateTime = KDateTime;
-+#endif
- KCalCore::FileStorage::Ptr fileStorage(new KCalCore::FileStorage(memCal, url.toLocalFile(), new KCalCore::ICalFormat));
-
- qCDebug(DIGIKAM_GENERAL_LOG) << "Loading calendar from file " << url.toLocalFile();
-@@ -313,9 +319,9 @@ void CalSettings::loadSpecial(const QUrl& url, const QColor& color)
- qLast = calSys.date(params.year + 1, 1, 1);
- qLast = qLast.addDays(-1);
-
-- KDateTime dtFirst(qFirst);
-- KDateTime dtLast(qLast);
-- KDateTime dtCurrent;
-+ DateTime dtFirst(qFirst, QTime(0, 0));
-+ DateTime dtLast(qLast, QTime(0, 0));
-+ DateTime dtCurrent;
-
- int counter = 0;
- KCalCore::Event::List list = memCal->rawEvents(qFirst, qLast);
---
-cgit v0.11.2
-
diff --git a/media-gfx/digikam/files/digikam-5.7.0-kreadconfig5.patch b/media-gfx/digikam/files/digikam-5.7.0-kreadconfig5.patch
deleted file mode 100644
index 7305f64aa3fb..000000000000
--- a/media-gfx/digikam/files/digikam-5.7.0-kreadconfig5.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From bbf087645d426e20ce96fa2accd70ff4198d30ec Mon Sep 17 00:00:00 2001
-From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
-Date: Wed, 6 Dec 2017 22:31:29 +0100
-Subject: [PATCH] cleanup_digikamdb: Don't depend on kde-runtime
-
-Summary: This needs to use kreadconfig5 in a Frameworks world.
-
-Differential Revision: https://phabricator.kde.org/D9235
----
- data/scripts/cleanup_digikamdb/cleanup_digikamdb | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/data/scripts/cleanup_digikamdb/cleanup_digikamdb b/data/scripts/cleanup_digikamdb/cleanup_digikamdb
-index 3a68d3d040..9cfcd6ac8d 100644
---- a/data/scripts/cleanup_digikamdb/cleanup_digikamdb
-+++ b/data/scripts/cleanup_digikamdb/cleanup_digikamdb
-@@ -58,7 +58,7 @@ readConfigValue()
- {
- local config_file="digikamrc"
- local config_group="Database Settings"
-- local db_dir=$(kreadconfig --file "${config_file}" --group "${config_group}" --key "$1")
-+ local db_dir=$(kreadconfig5 --file "${config_file}" --group "${config_group}" --key "$1")
- echo "${db_dir}"
- }
-
---
-2.15.1
-
diff --git a/media-gfx/digikam/files/digikam-5.7.0-mariadb-10.2-1.patch b/media-gfx/digikam/files/digikam-5.7.0-mariadb-10.2-1.patch
deleted file mode 100644
index e3e968fbaac6..000000000000
--- a/media-gfx/digikam/files/digikam-5.7.0-mariadb-10.2-1.patch
+++ /dev/null
@@ -1,58 +0,0 @@
-From 395ab5b02ed7d02736a08e370217c0c96b391bb9 Mon Sep 17 00:00:00 2001
-From: Maik Qualmann <metzpinguin@gmail.com>
-Date: Wed, 6 Dec 2017 08:09:44 +0100
-Subject: Workaround for the problem mariaDB >= 10.2 and QTBUG-63108
-
----
- libs/album/albummanager.cpp | 14 ++++++++++++++
- 1 file changed, 14 insertions(+)
-
-diff --git a/libs/album/albummanager.cpp b/libs/album/albummanager.cpp
-index a72acc3..2ea40e9 100644
---- a/libs/album/albummanager.cpp
-+++ b/libs/album/albummanager.cpp
-@@ -162,6 +162,7 @@ public:
- hasPriorizedDbPath(false),
- dbPort(0),
- dbInternalServer(false),
-+ dbFakeConnection(false),
- showOnlyAvailableAlbums(false),
- albumListJob(0),
- dateListJob(0),
-@@ -192,6 +193,7 @@ public:
- QString dbHostName;
- int dbPort;
- bool dbInternalServer;
-+ bool dbFakeConnection;
-
- bool showOnlyAvailableAlbums;
-
-@@ -391,6 +393,11 @@ void AlbumManager::cleanUp()
- d->personListJob->cancel();
- d->personListJob = 0;
- }
-+
-+ if (d->dbFakeConnection)
-+ {
-+ QSqlDatabase::removeDatabase(QLatin1String("FakeConnection"));
-+ }
- }
-
- bool AlbumManager::databaseEqual(const DbEngineParameters& parameters) const
-@@ -727,6 +734,13 @@ bool AlbumManager::setDatabase(const DbEngineParameters& params, bool priority,
- // ensure, embedded database is loaded
- qCDebug(DIGIKAM_GENERAL_LOG) << params;
-
-+ // workaround for the problem mariaDB >= 10.2 and QTBUG-63108.
-+ if (params.isMySQL() && !d->dbFakeConnection)
-+ {
-+ QSqlDatabase::addDatabase(QLatin1String("QMYSQL"), QLatin1String("FakeConnection"));
-+ d->dbFakeConnection = true;
-+ }
-+
- if (params.internalServer)
- {
- DatabaseServerError result = DatabaseServerStarter::instance()->startServerManagerProcess(params);
---
-cgit v0.11.2
-
diff --git a/media-gfx/digikam/files/digikam-5.7.0-mariadb-10.2-2.patch b/media-gfx/digikam/files/digikam-5.7.0-mariadb-10.2-2.patch
deleted file mode 100644
index eed213c3bc9e..000000000000
--- a/media-gfx/digikam/files/digikam-5.7.0-mariadb-10.2-2.patch
+++ /dev/null
@@ -1,117 +0,0 @@
-From ba1ceda1448895009ba6524398ca42441695cc3e Mon Sep 17 00:00:00 2001
-From: Maik Qualmann <metzpinguin@gmail.com>
-Date: Wed, 6 Dec 2017 18:28:32 +0100
-Subject: workaround for QTBUG-63108 now works in all cases
-
----
- app/main/digikamapp.cpp | 2 ++
- libs/album/albummanager.cpp | 30 +++++++++++++++++++++---------
- libs/album/albummanager.h | 3 +++
- libs/database/utils/dbsettingswidget.cpp | 3 +++
- 4 files changed, 29 insertions(+), 9 deletions(-)
-
-diff --git a/app/main/digikamapp.cpp b/app/main/digikamapp.cpp
-index 4349271..935b786 100644
---- a/app/main/digikamapp.cpp
-+++ b/app/main/digikamapp.cpp
-@@ -383,6 +383,8 @@ DigikamApp::~DigikamApp()
- DatabaseServerStarter::instance()->stopServerManagerProcess();
- }
-
-+ AlbumManager::instance()->removeFakeConnection();
-+
- m_instance = 0;
-
- delete d->modelCollection;
-diff --git a/libs/album/albummanager.cpp b/libs/album/albummanager.cpp
-index 2ea40e9..92a8b37 100644
---- a/libs/album/albummanager.cpp
-+++ b/libs/album/albummanager.cpp
-@@ -393,11 +393,6 @@ void AlbumManager::cleanUp()
- d->personListJob->cancel();
- d->personListJob = 0;
- }
--
-- if (d->dbFakeConnection)
-- {
-- QSqlDatabase::removeDatabase(QLatin1String("FakeConnection"));
-- }
- }
-
- bool AlbumManager::databaseEqual(const DbEngineParameters& parameters) const
-@@ -734,11 +729,10 @@ bool AlbumManager::setDatabase(const DbEngineParameters& params, bool priority,
- // ensure, embedded database is loaded
- qCDebug(DIGIKAM_GENERAL_LOG) << params;
-
-- // workaround for the problem mariaDB >= 10.2 and QTBUG-63108.
-- if (params.isMySQL() && !d->dbFakeConnection)
-+ // workaround for the problem mariaDB >= 10.2 and QTBUG-63108
-+ if (params.isMySQL())
- {
-- QSqlDatabase::addDatabase(QLatin1String("QMYSQL"), QLatin1String("FakeConnection"));
-- d->dbFakeConnection = true;
-+ addFakeConnection();
- }
-
- if (params.internalServer)
-@@ -3558,4 +3552,22 @@ void AlbumManager::removeWatchedPAlbums(const PAlbum* const album)
- d->albumWatch->removeWatchedPAlbums(album);
- }
-
-+void AlbumManager::addFakeConnection()
-+{
-+ if (!d->dbFakeConnection)
-+ {
-+ // workaround for the problem mariaDB >= 10.2 and QTBUG-63108
-+ QSqlDatabase::addDatabase(QLatin1String("QMYSQL"), QLatin1String("FakeConnection"));
-+ d->dbFakeConnection = true;
-+ }
-+}
-+
-+void AlbumManager::removeFakeConnection()
-+{
-+ if (d->dbFakeConnection)
-+ {
-+ QSqlDatabase::removeDatabase(QLatin1String("FakeConnection"));
-+ }
-+}
-+
- } // namespace Digikam
-diff --git a/libs/album/albummanager.h b/libs/album/albummanager.h
-index bee58c4..5b24c8d 100644
---- a/libs/album/albummanager.h
-+++ b/libs/album/albummanager.h
-@@ -625,6 +625,9 @@ public:
-
- void removeWatchedPAlbums(const PAlbum* const album);
-
-+ void addFakeConnection();
-+ void removeFakeConnection();
-+
- //@}
-
- Q_SIGNALS:
-diff --git a/libs/database/utils/dbsettingswidget.cpp b/libs/database/utils/dbsettingswidget.cpp
-index ca95646..4f1e1a4 100644
---- a/libs/database/utils/dbsettingswidget.cpp
-+++ b/libs/database/utils/dbsettingswidget.cpp
-@@ -65,6 +65,7 @@
- #include "dlayoutbox.h"
- #include "mysqlinitbinary.h"
- #include "mysqlservbinary.h"
-+#include "albummanager.h"
-
- namespace Digikam
- {
-@@ -669,6 +670,8 @@ bool DatabaseSettingsWidget::checkMysqlServerConnection(QString& error)
-
- qApp->setOverrideCursor(Qt::WaitCursor);
-
-+ AlbumManager::instance()->addFakeConnection();
-+
- QString databaseID(QLatin1String("ConnectionTest"));
- QSqlDatabase testDatabase = QSqlDatabase::addDatabase(databaseBackend(), databaseID);
-
---
-cgit v0.11.2
-
diff --git a/media-gfx/digikam/files/digikam-5.7.0-qt-5.9.3.patch b/media-gfx/digikam/files/digikam-5.7.0-qt-5.9.3.patch
deleted file mode 100644
index 7001850cd9c4..000000000000
--- a/media-gfx/digikam/files/digikam-5.7.0-qt-5.9.3.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 855ba5b7d4bc6337234720a72ea824ddd3b32e5b Mon Sep 17 00:00:00 2001
-From: Maik Qualmann <metzpinguin@gmail.com>
-Date: Tue, 28 Nov 2017 21:29:00 +0100
-Subject: try to fix the Qt-5.9.3 empty album problem CCBUGS: 387373
-
-* asturm: Fix build w/ Qt-5.7
----
- libs/database/coredb/coredburl.cpp | 7 ++++++-
- 1 file changed, 6 insertions(+), 1 deletion(-)
-
-diff --git a/libs/database/coredb/coredburl.cpp b/libs/database/coredb/coredburl.cpp
-index 2c0d0eb..b1bdf71 100644
---- a/libs/database/coredb/coredburl.cpp
-+++ b/libs/database/coredb/coredburl.cpp
-@@ -88,8 +88,13 @@ CoreDbUrl CoreDbUrl::fromAlbumAndName(const QString& name,
- const DbEngineParameters& parameters)
- {
- CoreDbUrl url;
-+ QString path(album);
- url.setScheme(QLatin1String("digikamalbums"));
-- url.setPath(QLatin1Char('/') + album + QLatin1Char('/') + name);
-+
-+ if (path != QLatin1String("/"))
-+ path += QLatin1Char('/');
-+
-+ url.setPath(path + name);
-
- QUrlQuery q(url);
- q.addQueryItem(QLatin1String("albumRoot"), albumRoot.adjusted(QUrl::StripTrailingSlash).toLocalFile());
---
-cgit v0.11.2
-