Re: Bug#72140: Setting up libraries too slow
On Mon, 25 Sep 2000, Wichert Akkerman wrote:
> > > b) make dpkg set the LD_LIBRARY_PATH if its installing a library
> > > This would be a global setting that every program inherits, and would not
> > > require each library to modify its postinst, and set variables..
> > > c) call ldconfig at the end of the install/upgrade
> b is impossible.
Erm, libraries are searched for in /usr/lib anyway. You need to set
LD_LIBRARY_PATH only in the postinsts of programs that need libraries from
paths that aren't searched by default, and only for the scope of the
postinst, since you're calling ldconfig at the end of the dpkg run anyway.
Or even better, drop ldconfig and use -rpath for all binaries that need
libraries outside the regular search path.
PGP public key available from http://phobos.fs.tum.de/pgp/Simon.Richter.asc
Fingerprint: 10 62 F6 F5 C0 5D 9E D8 47 05 1B 8A 22 E5 4E C1
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!