Created attachment 541118 [details, diff] Add USE=tools and corresponding USE_DEPEND on opengl to qtwebkit-5.212.0_pre20180120.ebuild With USE=-opengl and dev-qt/qtopengl not installed, the build dies about two hours in with a missing header error: ``` /Tools/QtTestBrowser/launcherwindow.h:39:10: fatal error: QtOpenGL/QGLWidget: No such file or directory #include <QtOpenGL/QGLWidget> ^~~~~~~~~~~~~~~~~~~~ compilation terminated. ``` This comes from ENABLE_TOOLS=ON in the CMake config. Upstream apparently didn't bother to check their dependencies when they added this stuff. Patch for current ebuild enclosed, which makes these demo/utility apps off-by-default. That should hopefully save the next person from losing an entire day on this.
FWIW I encountered the same problem a couple weeks ago, did not get as far as you troubleshooting, just forced USE=opengl in my private overlay. I'll try your fix when I get a chance.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f573265fb7518d6a86f87b5c49107dc396215d55 commit f573265fb7518d6a86f87b5c49107dc396215d55 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2018-09-04 18:31:58 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2018-09-04 18:39:35 +0000 dev-qt/qtwebkit: Fix USE=-opengl by disabling tools Closes: https://bugs.gentoo.org/662198 Package-Manager: Portage-2.3.49, Repoman-2.3.10 dev-qt/qtwebkit/qtwebkit-5.212.0_pre20180120.ebuild | 1 + 1 file changed, 1 insertion(+)