Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 272968 - Drop bogus media-libs/glitz dependency in x11-wm/compiz-0.8.2 ebuild
Summary: Drop bogus media-libs/glitz dependency in x11-wm/compiz-0.8.2 ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Desktop-Effects herd
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-06 19:11 UTC by Christophe Saout
Modified: 2009-06-12 03:10 UTC (History)
0 users

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 Christophe Saout 2009-06-06 19:11:29 UTC
Compiz does not depend on glitz, not even optionally,  so please drop the dependency.

Reproducible: Always

Steps to Reproduce:
Comment 1 Per Öberg 2009-06-07 15:27:15 UTC
Glitz seems to make both compiz, and bluetooth manager crash on nvidia hardware using for example  nvidia-drivers-180.37--180.60. A thread i found mentioned that everything worked fine in 180.29  so I switched back which made everything work fine. (i.e. stop crashing)
Comment 2 Christophe Saout 2009-06-08 01:31:19 UTC
What are you talking about?

leto:/home/chtephan > tar xvfz /usr/portage/distfiles/compiz-0.8.2.tar.gz 
compiz-0.8.2/
compiz-0.8.2/intltool-extract.in
[...]
leto:/home/chtephan > grep -i -r glitz compiz-0.8.2
leto:/home/chtephan > 

ZERO! No mentioning whatsoever of glitz.  It is not used, compiz has *nothing* to do with glitz.

IIRC the original idea was to create a library that would abstract details of accessing 3D hardware when doing 2D operations and use this to blitz the window content.  It was quickly dropped because it didn't turn out well and compiz has been driving OpenGL directly for quite some time.  Also, glitz seems to be unmaintained, the latest release is almost three years old now.
Comment 3 Mike Auty (RETIRED) gentoo-dev 2009-06-11 08:48:00 UTC
Christophe, compiz requires cairo and if cairo's built with glitz support, then compiz uses glitz (indirectly).  It may not need the strict dependency, but that's not to say it doesn't use it, and it's not to say it doesn't causes crashes on Nvidia hardware.
Comment 4 Christophe Saout 2009-06-11 09:57:59 UTC
In order to use glitz in cairo, you explicitly have to create a glitz surface via cairo_glitz_surface_create().  It is not used automatically when available!

Grepping through all of the packages, the only cairo surfaces used are image (rendering to an in-memory bitmap) and xlib / xlib+xrender:

cairo_image_surface_create_for_data
cairo_image_surface_create_from_png
cairo_xlib_surface_create
cairo_xlib_surface_create_with_xrender_format

Ergo: glitz is not even used indirectly via cairo.

In fact, I have been using modified versions of the ebuilds myself for quite some time, because having libGL in the cairo dependencies pulls it into almost all X applications, which just increases memory usage for no good reason (there are no glitz surface users).  And everything is working fine.
Comment 5 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2009-06-12 03:10:12 UTC
This one is my fault - I was supposed to have remove the dep quite sometime ago, but forgot about it.
Fixed in the tree.