Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649600 - dev-python/PyQt5-5.10.1: /.../sipQtCoreQByteArray.cpp:2263:48: error: 'const class QByteArray' has no member named 'chopped'
Summary: dev-python/PyQt5-5.10.1: /.../sipQtCoreQByteArray.cpp:2263:48: error: 'const ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
: 649644 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-03-05 08:14 UTC by Pablo Cholaky
Modified: 2018-03-06 04:52 UTC (History)
14 users (show)

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


Attachments
PyQt5 5.10 patch to require Qt 5.10 (PyQt5.patch,334 bytes, patch)
2018-03-05 08:14 UTC, Pablo Cholaky
Details | Diff
qt594.patch (qt594.patch,1.02 KB, patch)
2018-03-05 18:57 UTC, Andrew Nowa Ammerlaan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pablo Cholaky 2018-03-05 08:14:55 UTC
Created attachment 522430 [details, diff]
PyQt5 5.10 patch to require Qt 5.10

Currently PyQ5.10 has a building failure because needs a function called chopped which isn't available until Qt5.10, as can be seen here: https://forums.gentoo.org/viewtopic-p-8179402.html?sid=d4db447840eb780742cdc36268d6c384

I suggest to add dependency of Qt 5.10 for PyQt 5.10, or just mask it.

Adding a patch modifying the minimal qt version. Not tested.
Comment 1 Ulenrich 2018-03-05 10:08:39 UTC
I do have the same compile error.
Please reenable dev-python/PyQt5-5.10.0
because that earlier ebuild just works.
Comment 2 Ulenrich 2018-03-05 10:26:40 UTC
On the other hand it looks like an error of upstream,
because it is just a Point.Point release and should therefore
depend on longterm qt-4.9 further on ?
Comment 3 Andreas Sturmlechner gentoo-dev 2018-03-05 14:02:03 UTC
*** Bug 649644 has been marked as a duplicate of this bug. ***
Comment 4 N. Andrew Walsh 2018-03-05 14:12:09 UTC
stupid side question: the 5.10 version is in the qt overlay, and requires that I set QT5_BUILD_TYPE as a keyword before I can emerge the dependencies (specifically, emerge tells me that qtcore-5.9999 is masked by a missing keyword). 

Where do I set that to enable the 5.10 (or, apparently, even the 5.11) version?
Comment 5 Nikos Chantziaras 2018-03-05 14:22:30 UTC
Please see bug 646580. AFAICT, the ebuild should not depend on Qt 5.10 because PyQt is backwards compatible. The aforementioned bug was fixed, but the issue was reintroduced with the version bump.
Comment 6 Jouni Kosonen 2018-03-05 15:20:39 UTC
(In reply to Nikos Chantziaras from comment #5)
> Please see bug 646580. AFAICT, the ebuild should not depend on Qt 5.10
> because PyQt is backwards compatible. The aforementioned bug was fixed, but
> the issue was reintroduced with the version bump.

I think the ebuild needs a similar patch than the now removed 5.10 had.
The Timeline in sip/QtCore/QtCoremod.sip now has what appears to be a guard value:

> %Timeline {Qt_5_0_0  ... Qt_5_9_2 Qt_5_9_3 Qt_5_9_99 Qt_5_10_0 Qt_5_10_1} 

but reading the sip documentation leads me to believe that that doesn't work. Those are just tag names, so the conditional processing doesn't know that they have semantic ordering and that Qt_5_9_4 would belong between 3 and 99. Adding it there does remove the chopped-function from the generated sources.

This is with dev-python/sip-4.19.7 but I don't see any changes in 4.19.8 that would change the functionality.
Comment 7 Andrew Nowa Ammerlaan gentoo-dev 2018-03-05 18:57:06 UTC
Created attachment 522466 [details, diff]
qt594.patch

I created this patch, which works for me. It is basically the same as the patch for the previous version referenced in comment 5 with the addition of Qt_5_10_1
Comment 8 Larry the Git Cow gentoo-dev 2018-03-06 04:52:59 UTC
The bug has been closed via the following commit(s):

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

commit ce044e2ae59af9d177e5c469e4be6ca6222616b9
Author:     Davide Pesavento <pesa@gentoo.org>
AuthorDate: 2018-03-06 04:52:37 +0000
Commit:     Davide Pesavento <pesa@gentoo.org>
CommitDate: 2018-03-06 04:52:37 +0000

    dev-python/PyQt5: fix build against Qt 5.9.4
    
    Closes: https://bugs.gentoo.org/649600
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 dev-python/PyQt5/PyQt5-5.10.1.ebuild               |  1 +
 dev-python/PyQt5/files/PyQt5-5.10.1-timeline.patch | 13 +++++++++++++
 2 files changed, 14 insertions(+)