Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 662198 - dev-qt/qtwebkit-5.212.0_pre20180120[-opengl] - accidental dependency on dev-qt/qtopengl
Summary: dev-qt/qtwebkit-5.212.0_pre20180120[-opengl] - accidental dependency on dev-q...
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: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2018-07-26 19:35 UTC by Enne Eziarc
Modified: 2018-09-04 18:40 UTC (History)
2 users (show)

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


Attachments
Add USE=tools and corresponding USE_DEPEND on opengl to qtwebkit-5.212.0_pre20180120.ebuild (qtwebkit.patch,876 bytes, patch)
2018-07-26 19:35 UTC, Enne Eziarc
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Enne Eziarc 2018-07-26 19:35:04 UTC
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.
Comment 1 Hank Leininger 2018-08-06 22:55:24 UTC
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.
Comment 2 Larry the Git Cow gentoo-dev 2018-09-04 18:40:01 UTC
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(+)