Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 428770 - =x11-libs/cairo-1.12.2-r* : need use flag gles2 to compile with GLES2 surface
Summary: =x11-libs/cairo-1.12.2-r* : need use flag gles2 to compile with GLES2 surface
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal enhancement with 2 votes (vote)
Assignee: Alexandre Rostovtsev (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-31 08:24 UTC by Denis I. Polukarov
Modified: 2018-01-25 18:02 UTC (History)
10 users (show)

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


Attachments
build.log (build.log,128.51 KB, text/plain)
2012-07-31 08:24 UTC, Denis I. Polukarov
Details
ebuild patch (p.patch,1.80 KB, patch)
2012-09-12 06:19 UTC, Matt Turner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Denis I. Polukarov 2012-07-31 08:24:07 UTC

    
Comment 1 Denis I. Polukarov 2012-07-31 08:24:41 UTC
Created attachment 319826 [details]
build.log
Comment 3 Matt Turner gentoo-dev 2012-08-10 23:03:38 UTC
Do you know what uses this?
Comment 4 Denis I. Polukarov 2012-08-13 09:17:30 UTC
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).
Comment 5 Matt Turner gentoo-dev 2012-09-12 06:19:47 UTC
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.
Comment 6 David Heidelberg (okias) 2013-05-24 19:30:38 UTC
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)
Comment 7 David Heidelberg (okias) 2013-05-24 21:12:27 UTC
FIXED x11-libs/cairo-1.12.14-r3::x11 overlay
Comment 8 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-07-17 16:20:31 UTC
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.
Comment 9 Matt Turner gentoo-dev 2013-07-20 04:42:35 UTC
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.
Comment 10 Nikoli 2013-07-20 08:49:41 UTC
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}.
Comment 11 James Le Cuirot gentoo-dev 2014-09-06 21:55:10 UTC
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.
Comment 12 Matt Turner gentoo-dev 2015-05-23 19:40:11 UTC
(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.
Comment 13 Pacho Ramos gentoo-dev 2016-05-28 10:43:09 UTC
What is pending to do here for 1.14.6?
Comment 14 Matt Turner gentoo-dev 2016-05-29 18:40:18 UTC
Looks like it's been added. Resolving.