[oe] [oe-commits] Koen Kooi : initscripts: only run ldconfig on boot when ld.so. conf is present

Stanislav Brabec utx at penguin.cz
Sat Nov 1 11:38:16 UTC 2008


Koen Kooi wrote:

> I don't have a strong opinion on that :) People more knowledgable about 
> ldconfig should chip in on this topic.

And what about something like:
if ..../ld.so.cache -ot /usr/lib -o /etc/ld.so.cache -ot /lib ; then
    /sbin/ldconfig
fi

Call ldconfig only if ld.so cache is outdated. Fast for users of package
managers, working for others, fast in subsequent reboots.

I guess that all package managers use method "fill new file in target
directory, then replace existing", so timestamp of library directory is
updated on any change.

Note that /etc/ld.so.conf contain also /usr/local/lib (not exists by
default, but defined by FHS) and /usr/X11R6/lib (obsolete).


________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus





More information about the Openembedded-devel mailing list