[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#172546: dpkg: issues with diversions and symlinks



On Thu, 2003-08-28 at 20:54, Tuukka Hastrup wrote:
> On Tue, 10 Dec 2002, Michel Dänzer wrote:
> 
> > In my DRI CVS snapshot packages, I'd like to divert libGL from xlibmesa3. I
> > expected that to be a simple matter of diverting
> > /usr/X11R6/lib/libGL.so.1.2, but the result was this:
> > 
> > lrwxr-xr-x    1 root     root           24 2002-12-07 10:54 /usr/X11R6/lib/libGL.so.1 -> libGL.so.1.2.nodri-trunk
> > - -rw-r--r--    1 root     root       805452 2002-12-05 20:55 /usr/X11R6/lib/libGL.so.1.2
> > - -rw-r--r--    1 root     root       491608 2002-11-23 09:05 /usr/X11R6/lib/libGL.so.1.2.nodri-trunk
> 
> I installed ATI's driver package (fglrx-glc22), and similarily needed to
> divert /usr/X11R6/lib/libGL.so.1.2 from xlibmesa3-gl. dpkg-divert moved it 
> to /usr/X11R6/lib/libGL.so.1.2.distrib.
> 
> All would be well, but when ldconfig updates symlinks, it decides that the
> diverted libGL.so.1.2.distrib is a better libGL.so.1 than the wanted
> libGL.so.1.2. This means all programs still use the library from
> xlibmesa3-gl.
> 
> dpkg-divert could fix this by diverting libraries to some other name than
> original + ".divert" by default. To fix ldconfig instead, I think the
> so-library naming scheme would have to be changed so that no .divert file
> could be considered a library version.

This bug has nothing to do with ldconfig. As you can see above,
libGL.so.1 (which apps are linked against) simply points to the diverted
file.


-- 
Earthling Michel Dänzer   \  Debian (powerpc), XFree86 and DRI developer
Software libre enthusiast  \     http://svcs.affero.net/rm.php?r=daenzer



Reply to: