Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 670958 - [kde overlay] kde-apps/kdepim-runtime: Disable -DQT_NO_CAST_FROM_ASCII et al. with qt 5.11
Summary: [kde overlay] kde-apps/kdepim-runtime: Disable -DQT_NO_CAST_FROM_ASCII et al....
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-11 20:02 UTC by Benjamin Traut
Modified: 2019-06-10 22:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
My current emerge --info output (emerge-info.txt,6.97 KB, text/plain)
2018-11-11 20:03 UTC, Benjamin Traut
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Traut 2018-11-11 20:02:37 UTC
I use the gentoo qt and kde overlays and am currently on qt 5.11.x

I have problems compiling kdepim-runtime-9999 from the kde overlay.

I reported an issue on kde bugtracker:

See https://bugs.kde.org/show_bug.cgi?id=400934

The problem arises because at least -DQT_NO_CAST_FROM_ASCII is used in the commandline compiling said package.

To cite upstream:
---
Laurent Montel 2018-11-11 17:46:28 UTC

you force some flags as there are removed by kdelibs4support.

So by default it builds without it.
So you need to remove theses flags for kdepim-runtime.

We will fix it later but for normal build it's ok.
---

Maybe the ebuild for kdepim-runtime could be changed until kde has fixed the issue in the source code?

Thanks.
Comment 1 Benjamin Traut 2018-11-11 20:03:38 UTC
Created attachment 554934 [details]
My current emerge --info output
Comment 2 Andreas Sturmlechner gentoo-dev 2018-11-11 21:05:06 UTC
live sources will fail to build from time to time, nothing wrong with that, and we don't generally add workarounds for temporary upstream build issues on live sources.

I can see the same flags in use when building kdepim-runtime-18.08.3, but it succeeds just fine.

A quick grep does not reveal those flags set anywhere by Qt/KDE ebuilds or eclass, so I doubt it is coming from us.
Comment 3 Manuel Nickschas 2018-11-12 10:56:44 UTC
Those flags are set in extra-cmake-modules, KDEFrameworkCompilerSettings.cmake. Removing them forcefully from that file fixes most of the issues, but that's obviously not the correct fix. I commented on and reopened the upstream bug with more information.
Comment 4 Benjamin Traut 2018-11-12 19:20:56 UTC
As mentioned in upstreams bugreport, it - for now - compiles after commenting out the line starting with punt_bogus_deps in the kdepim-runtime-9999.ebuild:

src_prepare() {
    kde5_src_prepare
    # We don't build kolab, so we can disable this
    # punt_bogus_dep KF5 KDELibs4Support
}
Comment 5 Larry the Git Cow gentoo-dev 2018-11-13 19:58:30 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=6d9e4e7ccc9ea68055f24c554d0e7648089c3c3f

commit 6d9e4e7ccc9ea68055f24c554d0e7648089c3c3f
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-11-13 18:39:14 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-11-13 19:57:45 +0000

    kde-apps/kdepim-runtime: Properly disable KDELibs4Support
    
    Bug: https://bugs.gentoo.org/670958
    KDE-bug: https://bugs.kde.org/show_bug.cgi?id=400934
    Package-Manager: Portage-2.3.51, Repoman-2.3.12
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 ...kdepim-runtime-18.11.80-nokdelibs4support.patch | 55 ++++++++++++++++++++++
 .../kdepim-runtime-18.12.49.9999.ebuild            |  6 +--
 kde-apps/kdepim-runtime/kdepim-runtime-9999.ebuild |  6 +--
 3 files changed, 57 insertions(+), 10 deletions(-)
Comment 6 Larry the Git Cow gentoo-dev 2019-06-10 22:03:25 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=1c696f46e11ace58458cd57542f23e3684822d6b

commit 1c696f46e11ace58458cd57542f23e3684822d6b
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2019-06-10 21:52:03 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-06-10 22:02:51 +0000

    kde-apps/kdepim-runtime: Disable kdelibs4support again
    
    We don't build kolab, make sure Libkolabxml can not be found as well.
    
    Upstream has been busy porting away from deprecated stuff in EWS:
    0935a3e91d32414db5cdc93ad807b7b026dc89c4
    93c8dd8c1b49eb0ab593f7dcf620abed76b49475
    
    Bug: https://bugs.gentoo.org/670958
    Package-Manager: Portage-2.3.67, Repoman-2.3.14
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../kdepim-runtime/kdepim-runtime-19.04.49.9999.ebuild     | 14 +++++++++++++-
 kde-apps/kdepim-runtime/kdepim-runtime-9999.ebuild         | 14 +++++++++++++-
 2 files changed, 26 insertions(+), 2 deletions(-)