Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 615860 - =dev-python/PyQt5-5.8.2 - qwebdatabase.h: No such file or directory
Summary: =dev-python/PyQt5-5.8.2 - qwebdatabase.h: No such file or directory
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-17 14:37 UTC by Francesco Turco
Modified: 2017-04-24 22:14 UTC (History)
0 users

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


Attachments
emerge --info (emerge-info.txt,6.30 KB, text/plain)
2017-04-17 14:37 UTC, Francesco Turco
Details
build log (build.log,434.25 KB, text/plain)
2017-04-17 14:39 UTC, Francesco Turco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Turco 2017-04-17 14:37:22 UTC
Created attachment 470254 [details]
emerge --info

I can't build =dev-python/PyQt5-5.8.2 with the webkit USE flag enabled:

x86_64-pc-linux-gnu-g++ -c -O2 -march=native -pipe -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I. -isystem /usr/include/python2.7 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWebKit -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -I. -I/usr/lib64/qt5/mkspecs/linux-g++ -o sipQtWebKitQList0100QWebDatabase.o sipQtWebKitQList0100QWebDatabase.cpp
/var/tmp/portage/dev-python/PyQt5-5.8.2/work/PyQt5_gpl-5.8.2/sip/QtWebKit/qwebdatabase.sip:26:26: fatal error: qwebdatabase.h: No such file or directory
 #include <qwebdatabase.h>
                          ^
compilation terminated.
make[1]: *** [Makefile:476: sipQtWebKitQList0100QWebDatabase.o] Error 1
make[1]: *** Waiting for unfinished jobs....
/var/tmp/portage/dev-python/PyQt5-5.8.2/work/PyQt5_gpl-5.8.2/sip/QtWebKit/qwebpluginfactory.sip:26:31: fatal error: qwebpluginfactory.h: No such file or directory
 #include <qwebpluginfactory.h>
                               ^
compilation terminated.
make[1]: *** [Makefile:473: sipQtWebKitcmodule.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-python/PyQt5-5.8.2/work/PyQt5_gpl-5.8.2-python2_7/QtWebKit'
make: *** [Makefile:665: sub-QtWebKit-make_first-ordered] Error 2

-------------------

It seems I have both required header files on my system:

# equery files qtwebkit | grep qwebdatabase.h
/usr/include/QtWebKit/qwebdatabase.h
root@desktop ~ 16:35:20 0 # equery files qtwebkit | grep qwebpluginfactory.h
/usr/include/QtWebKit/qwebpluginfactory.h

-----------------

$ emerge -pv PyQt5

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-python/PyQt5-5.8.2::gentoo  USE="dbus gui network opengl printsupport svg webchannel webengine webkit* widgets -bluetooth -debug -declarative -designer -doc -examples -gles2 -help -location -multimedia -positioning -sensors -serialport -sql -testlib -websockets -x11extras -xmlpatterns" PYTHON_TARGETS="python2_7 python3_5 python3_6 -python3_4" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

--------------

$ emerge -pv qtwebkit

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-qt/qtwebkit-6.0:5::fturco  USE="X geolocation gstreamer hyphen jit opengl printsupport -multimedia -nsplugin -orientation -webp" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

--------------

I downloaded the dev-qt/qtwebkit-6.0 ebuild from https://gist.github.com/annulen/309569fb61e5d64a703c055c1e726f71
Comment 1 Francesco Turco 2017-04-17 14:39:03 UTC
Created attachment 470256 [details]
build log
Comment 2 Andreas Sturmlechner gentoo-dev 2017-04-24 22:14:19 UTC
Whatever qtwebkit-6.0 is, or is doing, it is doing it wrong. Header installation directory should be in /usr/include/qt5/QtWebKit as expected by PyQt5, outside of that it can not serve as drop-in replacement unless you change it's reverse dependencies.