Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 80399

Summary: gtkglext requires non-existent /etc/env.d/09opengl file.
Product: Gentoo Linux Reporter: James C. Georgas <james.georgas>
Component: New packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description James C. Georgas 2005-02-01 16:00:25 UTC
I tried to emerge celestia today. Celestia requires gtkglext (version 1.0.5 as of this bug report). In the gtkglext ebuild, pkg_setup() tests for the existence of /etc/env.d/09opengl, and fails because this file does not exist on my system. I have 03opengl and I have 09ati. It looks like something got rearranged w.r.t. these files.

Solution:

I changed 09opengl to 03opengl, and it seemed to build properly.
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-01 16:14:50 UTC
http://www.mail-archive.com/gentoo-dev@gentoo.org/msg03994.html
Comment 2 James C. Georgas 2005-02-01 16:38:05 UTC
Thanks. This ebuild has issues...

I think that if there's a problem with the nvidia headers, as the comment in this ebuild suggests, then they should be fixed in the nvidia ebuild.

Changing the current opengl implementation with opengl-update causes another bug in this ebuild.

Since the code that changes the opengl implementation is in pkg_setup() and the code that restores it is in pkg_postinst(), they can me called in two separate invocations of the ebuild. This means that the second invocation will not have the variable USING_X11 set, and the test will error out because it will only see [ -eq 1 ], and try to interpret -eq as a unary operator. The result will be that if the opengl implementation was changed in pkg_setup(), then it will not be changed back by the second invocation. I saw this error, probably because I built a binary package during the install.
Comment 3 Joe McCann (RETIRED) gentoo-dev 2005-02-01 17:45:52 UTC

*** This bug has been marked as a duplicate of 79693 ***