Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 332077 - x11-libs/cairo: Is xcb backend really safe?
Summary: x11-libs/cairo: Is xcb backend really safe?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-10 15:49 UTC by Pacho Ramos
Modified: 2012-07-14 19:12 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2010-08-10 15:49:59 UTC
Please take care that "xcb" USE flag is enabled by default on "desktop" profiles and, then, x11-libs/cairo gets built with xcb support if not disabled manually. The problem is that the following message is shown when "xcb" USE flag is enabled:

WARN: postinst
You have enabled the Cairo XCB backend which is used only by
a select few apps. The Cairo XCB backend is presently
un-maintained and needs a lot of work to get it caught up
to the Xrender and Xlib backends, which are the backends used
by most applications. See:
http://lists.freedesktop.org/archives/xcb/2008-December/004139.html


After reading it and pointed link, seems that xcb backend is "suboptimal" and I am unsure about being better to simply disable it. In that case, wouldn't be better to simply drop that USE flag and disable that old and unmaintained backend?

Thanks

Reproducible: Always
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-08-11 02:55:31 UTC
Huh. We have packages in tree using cairo-xcb, such as x11-wm/awesome.
At most, you can get rid of the postinst message and leave things as is.
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2010-08-11 15:07:01 UTC
The state of cario's xcb support is still the same sorry state it was in 2 years ago.

The message shouldn't go away. In reality I should have stuck to my guns a long time ago when I ripped out xcb support from the Gentoo cairo package but people complained that they wanted to use awesome and such so I left it with a warning.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2010-08-11 15:14:55 UTC
That being said, I may consider dropping the note in cairo 1.10 if the backend is supported upstream officially. Right now they close any bugs against the xcb backend if you don't provide a patch since its not supported.

That's not something we want to call stable in Gentoo.
Comment 4 Pacho Ramos gentoo-dev 2010-08-28 10:47:24 UTC
Other option could be to rename "xcb" USE flag for x11-libs/cairo to anything else like, for example, "xcb-backend" and, that way, most people wouldn't get that backend build by default and the few packages still relying on it could RDEPEND on that new USE flag :-|. In the end, that backend would be only build when really needed by some other app. What do you think?
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2010-08-28 18:35:44 UTC
Is it possible for me to configure USE defaults such that it ignores the profiles that now default USE=xcb?
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2010-08-30 12:12:23 UTC
(In reply to comment #5)
> Is it possible for me to configure USE defaults such that it ignores the
> profiles that now default USE=xcb?
> 

Yes, see profiles/base/package.use. That's exactly what openldap does for USE=cxx there.
Comment 7 Siarhei Siamashka 2011-01-24 00:36:55 UTC
cairo is on the way to getting properly working xcb support:
http://lists.cairographics.org/archives/cairo/2011-January/021570.html
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2012-07-14 19:12:15 UTC
This is old. XCB with Cairo works fine now days.