public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] NVIDIA and /usr/lib/OpenGL.so thoughts
@ 2002-03-23 10:29 Arcady Genkin
  2002-03-23 19:47 ` Lars S. Jensen
  0 siblings, 1 reply; 2+ messages in thread
From: Arcady Genkin @ 2002-03-23 10:29 UTC (permalink / raw
  To: gentoo-dev

Since we updated to the new NVIDIA drivers layout I have seen a lot of
noise about it in -users and in the bug tracker.  I still think that
we did the right thing by moving the drivers into /opt, and I still
think that the applications that don't honor run-time linker's
resolution of libGL.so to /opt/nvidia/lib are broken.  However, I
think that we can improve the situation a bit.

Some premises:
1.  Drobbins voice a hypothesis that some programs (quake) have
"/usr/lib/libGL.so" hardcoded and use a system call to load the
lbrary.
2.  It seems that compilation sybsystems of other programs (gltron,
perhaps?) define run-time library paths at compile time by passing the
linker "-rpath" option.
3.  Xfree installs *symlinks*
      /usr/lib/libGL.so -> /usr/X11R6/lib/libGL.so
      /usr/lib/libGL.so.1 -> /usr/X11R6/lib/libGL.so.1
it's important that they are symlinks.

A possible solution:
1.  Xfree ebuild does *not* install the symlinks.
2.  Instead we create a separate package that would install just the
symlinks into /usr/lib (for people that do not use NVIDIA drivers).
We can name it "xfree-gl-symlinks" or just "xfree-gl".
3.  For the people who use NVIDIA drivers, we make nvidia-glx pacakge
install the synlinks in /usr/lib, pointing to /opt/nvidia/lib,
naturally.

This ain't pretty, and it's a kludge.  I don't like it much, but I
think that this will make lives of many users easier, at a nominal
cost.  If anyone can think of another way to fix the problem, I hope
that a better idea exits. ;^)

Comments?
-- 
Arcady Genkin
Don't read everything you believe.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-dev] NVIDIA and /usr/lib/OpenGL.so thoughts
  2002-03-23 10:29 [gentoo-dev] NVIDIA and /usr/lib/OpenGL.so thoughts Arcady Genkin
@ 2002-03-23 19:47 ` Lars S. Jensen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars S. Jensen @ 2002-03-23 19:47 UTC (permalink / raw
  To: Gentoo dev

On Sat, 2002-03-23 at 11:29, Arcady Genkin wrote:
> Since we updated to the new NVIDIA drivers layout I have seen a lot of
> noise about it in -users and in the bug tracker.  I still think that
> we did the right thing by moving the drivers into /opt, and I still
> think that the applications that don't honor run-time linker's
> resolution of libGL.so to /opt/nvidia/lib are broken.  However, I
> think that we can improve the situation a bit.
> 
> Some premises:
> 1.  Drobbins voice a hypothesis that some programs (quake) have
> "/usr/lib/libGL.so" hardcoded and use a system call to load the
> lbrary.
Some application/configure (OpenCascade) expect that all OpenGL
header-files (gl.h and glu.h) or/and lib-files (libGL and libGLU) are in
the same dir.
> 2.  It seems that compilation sybsystems of other programs (gltron,
> perhaps?) define run-time library paths at compile time by passing the
> linker "-rpath" option.
> 3.  Xfree installs *symlinks*
>       /usr/lib/libGL.so -> /usr/X11R6/lib/libGL.so
>       /usr/lib/libGL.so.1 -> /usr/X11R6/lib/libGL.so.1
> it's important that they are symlinks.
> 
> A possible solution:
> 1.  Xfree ebuild does *not* install the symlinks.
> 2.  Instead we create a separate package that would install just the
> symlinks into /usr/lib (for people that do not use NVIDIA drivers).
> We can name it "xfree-gl-symlinks" or just "xfree-gl".
> 3.  For the people who use NVIDIA drivers, we make nvidia-glx pacakge
> install the synlinks in /usr/lib, pointing to /opt/nvidia/lib,
> naturally.
> 
> This ain't pretty, and it's a kludge.  I don't like it much, but I
> think that this will make lives of many users easier, at a nominal
> cost.  If anyone can think of another way to fix the problem, I hope
> that a better idea exits. ;^)
> 
> Comments?
I go for it!

> -- 
> Arcady Genkin
> Don't read everything you believe.
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
> 




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-03-23 19:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-23 10:29 [gentoo-dev] NVIDIA and /usr/lib/OpenGL.so thoughts Arcady Genkin
2002-03-23 19:47 ` Lars S. Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox