Summary: | =x11-libs/cairo-1.12.2-r* : need use flag gles2 to compile with GLES2 surface | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Denis I. Polukarov <dipolukarov> |
Component: | Current packages | Assignee: | Alexandre Rostovtsev (RETIRED) <tetromino> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | bj.rn, chewi, dschridde+gentoobugs, jakub.daniel, mattst88, mrueg, nikoli, siarhei.siamashka, tetromino, x11 |
Priority: | Normal | ||
Version: | 10.0 | ||
Hardware: | ARM | ||
OS: | Linux | ||
See Also: |
https://bugs.freedesktop.org/show_bug.cgi?id=57379 https://bugs.gentoo.org/show_bug.cgi?id=643726 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
ebuild patch |
Description
Denis I. Polukarov
2012-07-31 08:24:07 UTC
Created attachment 319826 [details]
build.log
Do you know what uses this? libpango-cairo.so, and many libs linked on cairo. I have to rebuild many portages, because it need to relink on proper libs (libEGL, libGLESv2). Created attachment 323576 [details, diff]
ebuild patch
So I tried this patch, but I get duplicated symbols. Building with USE="-opengl gles2" fixes it, but I don't see any reason these aren't supposed to be able to be built together.
right now it has to be -opengl +gles2 or opengl -gles2, but anyway required_use solve this as workaround, till https://bugs.freedesktop.org/show_bug.cgi?id=57379 will be fixed (and maybe patch applied). In few minutes pushing into x11 overlay (with some other fixies) FIXED x11-libs/cairo-1.12.14-r3::x11 overlay cairo-1.12.14-r3 now has the gles2 flag. I am keeping this bug open and the flag in package.use.mask until upstream #57379 is fixed. But... again, why? What does this allow you to do? This smells like "there's an option, let me play with it" and I don't think that's sufficient justification for supporting it. It is used by wayland and weston, see x11 overlay. Also not all arches and devices have drivers with full opengl support, some support only gles{,2}. I have unmasked gles2 in an attempt to get Weston working on my ARM box. I still haven't got it working yet so I don't yet know whether that was the right thing to do but in any case, there is a problem I had to workaround. GLX support in Cairo is automagic as we currently don't pass a configure option for it. If detected during configure, it breaks a gles2 build for fairly obvious reasons. There doesn't seem to be a glx USE flag so something like $(use_enable opengl glx) should probably be added. (In reply to Nikoli from comment #10) > It is used by wayland and weston, see x11 overlay. Also not all arches and > devices have drivers with full opengl support, some support only gles{,2}. Which upstream says you shouldn't use unless you know what you're doing... bug 549912. What is pending to do here for 1.14.6? Looks like it's been added. Resolving. |