| Summary: | media-libs/opencv-3.1.0-r6 and later USE=gtk gtk+:2 and gtk+:3 mixups, ineffective USE=opengl | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Mart Raudsepp <leio> |
| Component: | Current packages | Assignee: | Amy Liffey <amynka> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | dilfridge, kde |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Mart Raudsepp
2017-01-15 04:03:35 UTC
Sorry, I was wrong in terms of -DWITH_GTK=OFF. If you choose to go with gtk, actually both WITH_GTK and WITH_GTK_2_X would have to be $(usex gtk) as WITH_GTK is used as "use gtk+ at all" and then if that is set, WITH_GTK_2_X is checked to use gtk2 instead of gtk3. (In reply to Mart Raudsepp from comment #1) > Sorry, I was wrong in terms of -DWITH_GTK=OFF. If you choose to go with gtk, > actually both WITH_GTK and WITH_GTK_2_X would have to be $(usex gtk) as > WITH_GTK is used as "use gtk+ at all" and then if that is set, WITH_GTK_2_X > is checked to use gtk2 instead of gtk3. So if I understand the problem correctly. If we change this -DWITH_GTK=$(usex gtk) -DWITH_GTK_2_X=OFF to -DWITH_GTK=$(usex gtk) -DWITH_GTK_2_X=$(usex gtk) It solves the bug? If you decide you have to stick with gtk+:2 only, then yes, that should fix it. Are all the consumers having a USE depend properly, so I can find all the consumers that need this and help investigate the gtk2 vs gtk3 thing at some point later? I'll have to circle back later to see about getting rid of gtkglext and then gtk+:2, but that's a 12 months timeline for gtkglext I suppose :D But decision to stick with gtk2 is OK for now. btw, I don't think gtkglext actually does much, might just initialize it as needed to be used by consumers, and with gtk3 having its own GtkGlArea, there is no extra initialization necessary and the consumers that are gtk3 could just use it directly instead. But not if opencv package pulls in gtk2 for them. Anyhow, I think that change is fine for now to fix the deps, and we can circle back on any gtk3 business later on. commit 24f777d08cddf2fe05031d1c8c63232d6e025724 Author: Amy Liffey <amynka@gentoo.org> Date: Fri Jan 20 15:35:05 2017 +0100 media-libs/opencv: fix gtk bug #605740 |