Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113168 - building gl apps against a default set of headers
Summary: building gl apps against a default set of headers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 148019 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-21 08:00 UTC by Ed Catmur
Modified: 2009-07-28 17:48 UTC (History)
4 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 Ed Catmur 2005-11-21 08:00:27 UTC
Bug 107836 (celestia build failure against nvidia-glx) happens because we build
and link gtkglext against the wrong opengl implementation.

The suggested workaround (build and link celestia against the wrong opengl
implementation) is just wrong.

gtkglext builds OK against nvidia-glx-1.0.7676-r2, so the opengl-update hack
should be retired or made version dependent.
Comment 1 Pat Suwalski 2006-02-17 07:44:21 UTC
As a Celestia developer and a video driver packager for another distribution, it is my opinion that all programs should be built against X.org's GL, and programs should only use nVidia and ATI's GL libraries loaded via ld.
Comment 2 Pat Suwalski 2006-02-17 10:36:45 UTC
I should clarify in saying that if things are not linked against X.org's libGL, then things break when a person changes their video card and everything needs to be recompiled. Similar symptoms in bug #123149.
Comment 3 foser (RETIRED) gentoo-dev 2006-02-26 06:37:46 UTC
I was looking to remove the switch in gtkglext in #116715 , but I think Pat has a point.

I wondered if we already have some policy for this by the X11 team or that we should adopt such a rule ?
Comment 4 foser (RETIRED) gentoo-dev 2006-02-26 11:25:17 UTC
I think we should consider building all GL apps against a global set of headers by default. This would make switching implementations in ebuilds unneeded and should prevent problems with building different packs against different headers like reported here.
Comment 5 Ed Catmur 2006-02-27 00:21:04 UTC
It isn't just the headers; it's also the link-time LDPATH. I don't necessarily agree that building against Xorg libGl is the right thing to do (I feel perfectly comfortable with rebuilding a few apps when I change GL implementation), but:

If we are going to do that it might be better to set CFLAGS and LDFLAGS in the gtkglext ebuild to force building against Xorg libGL, and sneak those CFLAGS/LDFLAGS into the gtkglext pkgconfig. That then also takes care of packages built outside Portage.

Cflags: -I/usr/lib/opengl/global/include -I/usr/lib/opengl/xorg-x11/include
Libs: -I/usr/lib/opengl/xorg-x11/lib
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-12-02 08:23:07 UTC
*** Bug 148019 has been marked as a duplicate of this bug. ***
Comment 7 Rémi Cardona (RETIRED) gentoo-dev 2009-07-28 17:48:19 UTC
All 3 major implementations now provide similar (if not identical) headers. That and no news for 3 years, closing FIXED.

Thanks