--- Pixel <[EMAIL PROTECTED]> wrote:
> i've just tested. I thought without calling
> ldconfig, the binary would fail to
> load the dynamic library. But it's not true :)      
> /etc/ld.so.cache is just for speedup.

Well, ldconfig also updates links and in some cases it
could cause and executable to not find the library (is
this right, or am I making this up? he, he)
 
> i'm going to patch ldconfig so that it just returns
> $DURING_INSTALL, and see how
> that goes.

You lost me here. Could you please explain what you
mean? I guess you mean ldconfig will only be run when
the package is installed with the -i? If so, this may
cause problems, since a lot of people (or scripts for
that matter) use -U always.

Anyways, I think I found why it took ridiculously long
for ldconfig to execute. I don't know why (I guess
there is a bug in some package, but my /etc/ld.so.conf
looked like this:

[root@fulgore:/etc]# more ld.so.conf
/usr/lib
/usr/i486-linux-libc5/lib
/usr/lib
/usr/lib
/usr/lib
/usr/lib
/usr/lib
/usr/lib
/usr/lib
/usr/lib
/usr/lib
/usr/lib
/usr/lib
/usr/lib
/usr/X11R6/lib
/usr/lib
/usr/lib
/usr/lib
/usr/lib
[root@fulgore:/etc]# 

Well, this reduced the time for ldconfig to run from
5-10 min to 1-2 min!

But my previous points about it being run for every
package (some times twice) are still valid, IMHO.

=====
________________________
Eugenio Diaz, BSEE/BSCE   
Linux Engineer
[EMAIL PROTECTED]

__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

Reply via email to