Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 641378

Summary: media-gfx/digikam-5.7.0 w/ kde-apps/kcalcore-17.12.0 - no matching function for call to ‘KCalCore::MemoryCalendar::MemoryCalendar(QString)’
Product: Gentoo Linux Reporter: younky.yang
Component: Current packagesAssignee: Andreas K. Hüttel <dilfridge>
Status: RESOLVED FIXED    
Severity: normal CC: jaak, kde
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to fix compile against kcalcore-17.12.0

Description younky.yang 2017-12-16 14:04:53 UTC
kcalcore 17.12 changed the constructor of MemoryCalendar which break the build of digikam 5.7.0. 

the error is as below. 
[ 52%] Building CXX object utilities/assistants/calendar/CMakeFiles/calendar_src.dir/print/calsettings.cpp.o
/data/portage/media-gfx/digikam-5.7.0-r2/work/digikam-5.7.0/core/utilities/assistants/calendar/print/calsettings.cpp: 在成员函数‘void Digikam::CalSettings::loadSpecial(const QUrl&, const QColor&)’中:
/data/portage/media-gfx/digikam-5.7.0-r2/work/digikam-5.7.0/core/utilities/assistants/calendar/print/calsettings.cpp:293:97: 错误:no matching function for call to ‘KCalCore::MemoryCalendar::MemoryCalendar(QString)’
     KCalCore::MemoryCalendar::Ptr memCal(new KCalCore::MemoryCalendar(QString::fromLatin1("UTC")));
                                                                                                 ^
Comment 1 Andreas Sturmlechner gentoo-dev 2017-12-18 18:06:20 UTC
*** Bug 641594 has been marked as a duplicate of this bug. ***
Comment 2 Jaak Ristioja 2017-12-18 18:17:02 UTC
Created attachment 510774 [details, diff]
Patch to fix compile against kcalcore-17.12.0

Here's a patch. Might not work when building against other versions kcalcore.
Comment 3 Andreas Sturmlechner gentoo-dev 2017-12-18 18:36:44 UTC
Unfortunately this needs several patches from upstream.
Comment 4 Larry the Git Cow gentoo-dev 2017-12-18 18:48:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68dc4f7818a96861e2962f3e5e3212aac7e9f074

commit 68dc4f7818a96861e2962f3e5e3212aac7e9f074
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2017-12-18 18:37:38 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2017-12-18 18:48:18 +0000

    media-gfx/digikam: Fix build/runtime w/ >=kde-apps/kcalcore-17.12.0
    
    Closes: https://bugs.gentoo.org/641594
    Closes: https://bugs.gentoo.org/641378
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 media-gfx/digikam/digikam-5.7.0-r3.ebuild          | 175 +++++++++++++++++++++
 .../digikam/files/digikam-5.7.0-kcalcore-1.patch   |  44 ++++++
 .../digikam/files/digikam-5.7.0-kcalcore-2.patch   |  79 ++++++++++
 3 files changed, 298 insertions(+)