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

Bug#2676: xlib postinst script broken



Package: xlib
Version: 3.1.2-5

When I installed a new debian configuration, I found some bugs mostly about
files conflicts between packages (most of these are already reported), but I
also found a bug in xlib package.
Using dselect, I have installed a set of packages. Two of them were xlib-3.1.2-5
and xaw3d-1.2a-2. Unfortunately, dselect has configured xaw3d first, putting
this line in /etc/ld.so.conf:
        /usr/X11R6/lib/Xaw3d
Then, configuration of xlib was apparently ok.
However, xlib.postinst script normaly put a line /usr/X11R6/lib only if not
already here.
But the grep instruction test for a *substring* not the whole line.
Thus this line isn't added because /usr/X11R6/lib is a substring of
/usr/X11R6/lib/Xaw3d.
Maybe changing:
        if ! grep /usr/X11R6/lib /etc/ld.so.conf ...
by
        if ! grep ^/usr/X11R6/lib$ /etc/ld.so.conf ...
is a better way to achieve the test.

Regards.

--
 Eric Delaunay                 | "La guerre justifie l'existence des militaires.
 delaunay@lix.polytechnique.fr | En les supprimant." Henri Jeanson (1900-1970)



Reply to: