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

Bug 563898

Summary: dev-python/PyQt5-5.5 fails to build: PyQt-gpl-5.5-python3_4/QtWebKitWidgets/sipQtWebKitWidgetsQWebHitTestResult.cpp:553:42: error: ‘const class QWebHitTestResult’ has no member named ‘linkTitleString’
Product: Gentoo Linux Reporter: Scott Alfter <scott>
Component: [OLD] DevelopmentAssignee: Qt Bug Alias <qt>
Status: RESOLVED FIXED    
Severity: normal CC: alex, gnu_andrew, paul
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=564560
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 569924    
Attachments: emerge --info
emerge -pqv
build log
output of: emerge --info '=dev-python/PyQt5-5.5::gentoo'
emerge -pqv
Build log

Description Scott Alfter 2015-10-23 18:01:09 UTC
While rebuilding as part of an "emerge -uND world" invocation, PyQt5 failed with the error in the summary.

Reproducible: Always
Comment 1 Scott Alfter 2015-10-23 18:02:16 UTC
Created attachment 415288 [details]
emerge --info
Comment 2 Scott Alfter 2015-10-23 18:03:42 UTC
Created attachment 415290 [details]
emerge -pqv
Comment 3 Scott Alfter 2015-10-23 18:05:20 UTC
Created attachment 415292 [details]
build log
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2015-10-24 17:08:26 UTC
This doesn't make any sense... the method is there... no #ifdef's, nothing...

Try without ccache please.
Comment 5 Paul Jewell 2015-10-24 18:59:42 UTC
I have also come across this problem. Also, it is re-installing PyQt5-5.5 having previously successfully compiled it. I am not using ccache. I'll post the relevant attachments shortly.
Comment 6 Paul Jewell 2015-10-24 19:02:28 UTC
Created attachment 415382 [details]
output of: emerge --info '=dev-python/PyQt5-5.5::gentoo'
Comment 7 Paul Jewell 2015-10-24 19:06:03 UTC
Created attachment 415384 [details]
emerge -pqv
Comment 8 Scott Alfter 2015-10-24 19:07:11 UTC
Tried "sudo FEATURES= emerge -1 PyQt5" just now...still failed.  Trying again with FEATURES commented out of /etc/portage/make.conf.

The weird thing is that this is a recompile.  PyQt5 is currently installed (which means it was able to compile in the past), but something (recompile of a dependency?) triggered a rebuild of PyQt5, and now it doesn't want to rebuild.  On another box, it recompiled yesterday without issue.  I tried rebuilding it on this box with the same set of USE flags yesterday, and it still failed.
Comment 9 Scott Alfter 2015-10-24 19:09:49 UTC
Commented out the FEATURES line in /etc/portage/make.conf to disable ccache...still failed to compile.
Comment 10 Paul Jewell 2015-10-24 19:14:41 UTC
Created attachment 415386 [details]
Build log
Comment 11 Davide Pesavento (RETIRED) gentoo-dev 2015-10-24 19:44:46 UTC
Could be related to the qt upgrade. Did you recently upgrade from 5.4.2 to 5.5.1? Check your emerge.log please.
Comment 12 Paul Jewell 2015-10-24 20:01:05 UTC
Upgrade to qt 5.5.1 was carried out on 19/10:

  Fri Jun  5 22:39:59 2015 >>> dev-qt/qtcore-5.4.1
  Sat Jun 20 08:50:48 2015 >>> dev-qt/qtcore-5.4.2
  Mon Oct 19 07:27:30 2015 >>> dev-qt/qtcore-5.5.1

PyQt5.5 was previously installed on 28th August:

  Sun Feb 22 14:29:46 2015 >>> dev-python/PyQt5-5.4
  Fri Aug 28 21:45:59 2015 >>> dev-python/PyQt5-5.5

So successful installation had previously occurred under version of qt.
Comment 13 Davide Pesavento (RETIRED) gentoo-dev 2015-10-24 20:57:44 UTC
Does sip-4.17 change anything? (I expect not)
Comment 14 Davide Pesavento (RETIRED) gentoo-dev 2015-10-24 21:20:35 UTC
(In reply to Paul Jewell from comment #12)
> Upgrade to qt 5.5.1 was carried out on 19/10:
> 
>   Fri Jun  5 22:39:59 2015 >>> dev-qt/qtcore-5.4.1
>   Sat Jun 20 08:50:48 2015 >>> dev-qt/qtcore-5.4.2
>   Mon Oct 19 07:27:30 2015 >>> dev-qt/qtcore-5.5.1
> 

wait, this is qtcore... what about qtwebkit? I suspect you still have 5.4.2
Comment 15 Paul Jewell 2015-10-24 21:38:50 UTC
You're right - qtwebkit is still at 5.4.2. I am currently upgrading sip to 4.17, and if that doesn't change anything, I'll give upgrade qtwebkit to 5.5.1 and try again.
Comment 16 Davide Pesavento (RETIRED) gentoo-dev 2015-10-24 21:47:02 UTC
Then I'm sure the reason is the misalignment between qtcore and qtwebkit versions.

QWebHitTestResult::linkTitleString was added in 5.5. There is a conditional in the .sip file, but I guess it looks at the version of qtcore, assuming that all qt modules are at the same version.
Comment 17 Paul Jewell 2015-10-25 07:28:40 UTC
Good morning David. I can confirm that with qtwebkit at 5.5.1, the package emerges successfully.

Thanks for identifying the issue - I am going to review how Qt5 here if keyworded to avoid other potential issues of this nature.
Comment 18 Scott Alfter 2015-10-25 17:25:20 UTC
Something recently prompted an upgrade of Qt 5 from stable to testing, so the following were added to /etc/portage/package.accept_keywords after something similar to "emerge -auND --backtrack=50 world"

dev-qt/qtxml:5 ~*
dev-qt/qtcore:5 ~*
dev-qt/qtgui:5 ~* 
dev-qt/qtsql:5 ~*
dev-qt/qtdbus:5 ~*
dev-qt/qtconcurrent:5 ~*
dev-qt/qtnetwork:5 ~*   
dev-qt/qtwidgets:5 ~*
dev-qt/qtopengl:5 ~* 
dev-qt/qttest:5 ~*    
dev-qt/qtprintsupport:5 ~*

qtwebkit wasn't included among them.  I'm adding it now, upgrading, and then rebuilding PyQt5.  If this ends up fixing it (and it sounds like it might), that would suggest that there's a missing or outdated dependency somewhere.
Comment 19 Scott Alfter 2015-10-25 18:36:18 UTC
qtwebkit built OK, but PyQt5 still won't.  Output from "equery list qt\* | grep 5.4" shows the following:

dev-qt/qtdeclarative-5.4.2-r1
dev-qt/qtmultimedia-5.4.2-r1
dev-qt/qtquick1-5.4.2
dev-qt/qtquickcontrols-5.4.2
dev-qt/qtscript-5.4.2
dev-qt/qtsvg-5.4.2
dev-qt/qtxmlpatterns-5.4.2

Probably need to add those to /etc/portage/package.accept_keywords and try again...
Comment 20 Scott Alfter 2015-10-25 19:27:51 UTC
After the last few changes, PyQt5 has finally rebuilt without error.  If qtcore:5 is set ~KEYWORD, all qt*:5 packages need to be set the same way.  In my case, I ended up with the following...YMMV, depending on what other packages you have installed:

dev-qt/qtxml:5 ~*
dev-qt/qtcore:5 ~*
dev-qt/qtgui:5 ~*
dev-qt/qtsql:5 ~*
dev-qt/qtdbus:5 ~*
dev-qt/qtconcurrent:5 ~*
dev-qt/qtnetwork:5 ~*
dev-qt/qtwidgets:5 ~*
dev-qt/qtopengl:5 ~*
dev-qt/qttest:5 ~*
dev-qt/qtprintsupport:5 ~*
dev-qt/qtwebkit:5 ~*
dev-qt/qtdeclarative:5 ~*
dev-qt/qtmultimedia:5 ~*
dev-qt/qtquick1:5 ~*
dev-qt/qtquickcontrols:5 ~*
dev-qt/qtscript:5 ~*
dev-qt/qtsvg:5 ~*
dev-qt/qtxmlpatterns:5 ~*
Comment 21 Michael Palimaka (kensington) gentoo-dev 2016-01-15 06:57:07 UTC
Most packages are revbumped now to prevent this from happening in the future.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf3cf2b99bb97b0ac13850a3537c72d0cc389f12
Comment 22 Davide Pesavento (RETIRED) gentoo-dev 2016-04-30 12:01:27 UTC
*** Bug 581564 has been marked as a duplicate of this bug. ***