Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 703586 - kde-frameworks/kitemviews-5.64.0 w/ Qt 5.14.0: error: ‘QPersistentModelIndex’ does not name a type
Summary: kde-frameworks/kitemviews-5.64.0 w/ Qt 5.14.0: error: ‘QPersistentModelIndex’...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard: fixed in 5.65.0
Keywords:
Depends on:
Blocks: qt-5.14
  Show dependency tree
 
Reported: 2019-12-23 01:15 UTC by Scott Alfter
Modified: 2019-12-23 18:31 UTC (History)
1 user (show)

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


Attachments
build log (build.log,93.84 KB, text/x-log)
2019-12-23 01:15 UTC, Scott Alfter
Details
emerge --info (file_703586.txt,6.76 KB, text/plain)
2019-12-23 01:16 UTC, Scott Alfter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Alfter 2019-12-23 01:15:16 UTC
Created attachment 600458 [details]
build log

I was doing an "emerge -uNDv world" on one of my machines when it stopped with this error (among others that look related):

```
In file included from /var/tmp/portage/kde-frameworks/kitemviews-5.64.0/work/kitemviews-5.64.0/src/kwidgetitemdelegatepool.cpp:22:
/var/tmp/portage/kde-frameworks/kitemviews-5.64.0/work/kitemviews-5.64.0/src/kwidgetitemdelegatepool_p.h:67:40: error: ‘QPersistentModelIndex’ does not name a type
```

Build log and other info will be attached shortly.
Comment 1 Scott Alfter 2019-12-23 01:16:07 UTC
Created attachment 600460 [details]
emerge --info
Comment 2 Scott Alfter 2019-12-23 01:33:20 UTC
FWIW, kitemviews 5.65.0 appears to build properly with the following saved somewhere in /etc/portage/package.keywords:

kde-frameworks/extra-cmake-modules ~*
kde-frameworks/kitemviews ~*

Still waiting to see if the rest of the emerge -uNDv world process will now complete.
Comment 3 Andreas Sturmlechner gentoo-dev 2019-12-23 11:02:09 UTC
Problem is caused by mixing stable (KF 5.64) and unstable (Qt 5.14) packages.
Comment 4 Larry the Git Cow gentoo-dev 2019-12-23 11:12:49 UTC
The bug has been closed via the following commit(s):

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

commit fe41c1c20b0d864a6399ac72bc3aa6dabac6b9e1
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2019-12-23 11:12:28 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-12-23 11:12:28 +0000

    kde-frameworks/kitemviews: Fix 5.64.0 build with Qt 5.14.0
    
    Upstream commit 69b9ac0575d905ded79ed013c6e2374d9ebeb841
    
    Reported-by: Scott Alfter <scott@alfter.us>
    Closes: https://bugs.gentoo.org/703586
    Package-Manager: Portage-2.3.82, Repoman-2.3.20
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../files/kitemviews-5.64.0-qt-5.14.0.patch        | 23 ++++++++++++++++++++++
 kde-frameworks/kitemviews/kitemviews-5.64.0.ebuild |  2 ++
 2 files changed, 25 insertions(+)
Comment 5 Andreas Sturmlechner gentoo-dev 2019-12-23 11:14:41 UTC
(In reply to Scott Alfter from comment #2)
> Still waiting to see if the rest of the emerge -uNDv world process will now
> complete.

Feel free to submit PRs for further failing packages using the commit in comment 4 as a template. Otherwise, it makes much more sense to upgrade to Frameworks 5.65.0 right away.
Comment 6 Scott Alfter 2019-12-23 17:57:56 UTC
(In reply to Andreas Sturmlechner from comment #3)
> Problem is caused by mixing stable (KF 5.64) and unstable (Qt 5.14) packages.

I had to bring in unstable Qt a while back when stable qtwebengine failed to build.  I tried dropping back to stable Qt, but stable qtwebengine still fails to build.

In any case, things are now running properly with kitemviews 5.65.0.  The rest of emerge -uNDv world finished without issue.  I even ran it again after syncing the Portage tree and overlays.
Comment 7 Andreas Sturmlechner gentoo-dev 2019-12-23 18:30:51 UTC
Thanks, I'm glad there isn't more fallout.