Follow-up on usrmove and ldconfig

Adam Williamson awilliam at redhat.com
Thu Feb 2 01:36:50 UTC 2012


On Wed, 2012-02-01 at 20:26 -0500, Tom H wrote:
> [root at localhost ~]# mv /etc/ld.so.conf.d/usrmove.conf .
> [root at localhost ~]# ldconfig
> [root at localhost ~]# ldconfig -p | wc -l
> 825
> [root at localhost ~]# ldconfig -p | grep usr | wc -l
> 11
> [root at localhost ~]# mv usrmove.conf /etc/ld.so.conf.d/
> [root at localhost ~]# ldconfig
> [root at localhost ~]# ldconfig -p | wc -l
> 825
> [root at localhost ~]# ldconfig -p | grep usr | wc -l
> 824
> [root at localhost ~]# ldconfig -p | grep -v usr
> 824 libs found in cache `/etc/ld.so.cache'
> [root at localhost ~]#
> 
> Even though ldconfig links to "/usr/lib" by default, adding "/usr/lib"
> to its conf seems to create direct links to "/usr/lib" rather than via
> the "/lib" symlink.

Ah, it may be to do with the ordering, then - somehow adding it as an
ld.so.conf.d file gives /usr/lib priority over /lib?
-- 
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net



More information about the test mailing list