[pkg-nvidia-devel] Bug#594416: nvidia-graphics-drivers: Breaking some GL applications linked to mesa

Christian Weeks cpw at weeksfamily.ca
Wed Aug 25 23:39:52 UTC 2010


On Wed, 2010-08-25 at 23:39 +0200, Andreas Beckmann wrote:
> On 2010-08-25 22:35, Christian Weeks wrote:
> > Found a problem with your diversion setup code. For some reason I had an old
> > version of libGL.so.1 lying around linked directly to a file outside of dpkg
> > control (probably last time I ran the installer directly from NVIDIA a few
> > years ago).
> 
> Unless there is an easy fix, this is an unsupported setup.
> 
I know. But recovering to a "supported" setup was my goal those many
moons ago. I never noticed the problem until today. The fix was very
simple indeed: force the alternatives links onto /usr/lib/libGL.*

Here's a listing of what had accidently gotten dropped there:

allie:/usr/lib# ls -l libGL*
lrwxrwxrwx 1 root root       22 Aug 24 14:02 libGLcore.so.1 ->
libGLcore.so.195.36.31
-rwxr-xr-x 1 root root 10869224 Dec 17  2007 libGLcore.so.169.04
-rw-r--r-- 1 root root 28862968 Jun  3 12:46 libGLcore.so.195.36.31
lrwxrwxrwx 1 root root       18 Jul 20 10:19 libGLEWmx.so.1.5 ->
libGLEWmx.so.1.5.4
-rw-r--r-- 1 root root   334176 Jun 12 02:50 libGLEWmx.so.1.5.4
lrwxrwxrwx 1 root root       16 Jun 17 11:36 libGLEW.so.1.5 ->
libGLEW.so.1.5.4
-rw-r--r-- 1 root root   387984 Jun 12 02:50 libGLEW.so.1.5.4
lrwxrwxrwx 1 root root       26 Aug 24 14:03 libGL.so
-> /etc/alternatives/libGL.so
lrwxrwxrwx 1 root root       15 Aug 25 12:22 libGL.so.1 ->
libGL.so.169.04
-rwxr-xr-x 1 root root   839560 Dec 17  2007 libGL.so.169.04
-rw-r--r-- 1 root root   929006 Jul 15 08:23 libGLU.a
lrwxrwxrwx 1 root root       11 Jul 16 10:40 libGLU.so -> libGLU.so.1
lrwxrwxrwx 1 root root       20 Jul 16 10:40 libGLU.so.1 ->
libGLU.so.1.3.070701
-rw-r--r-- 1 root root   461624 Jul 15 08:23 libGLU.so.1.3.070701

As you can see, libGL.so.1 was linked directly to libGL.so.169.04. It
must've been like this for about 2.5-3 years and I'd never noticed. Heh.

Your new alternatives stuff didn't take over that bad libGL link with a
good one.

It's speculation but at times in the past (when debian has lagged) I
have installed the upstream drivers directly. Clearly, this is an
artifact of those days (though I didn't want it there, it got
overlooked). Since your new stuff is trying to do it right, it would be
helpful maybe for it to actually fix the mess the upstream installer
drops in (or at least tell me about it so I can fix it myself).

> > Your update alternatives code looks like it didn't replace this file, and so
> > suddenly I was getting linkage errors from GL programs.
> 
> For further investigation I would need detailed output of the
> install/upgrade process and complete version information.
> 
> 
> Andreas
> 

Thanks for your help
Christian






More information about the Pkg-nvidia-devel mailing list