On Wed, Feb 1, 2012 at 8:36 PM, Adam Williamson <awilliam@xxxxxxxxxx> wrote: > On Wed, 2012-02-01 at 20:26 -0500, Tom H wrote: >> [root@localhost ~]# mv /etc/ld.so.conf.d/usrmove.conf . >> [root@localhost ~]# ldconfig >> [root@localhost ~]# ldconfig -p | wc -l >> 825 >> [root@localhost ~]# ldconfig -p | grep usr | wc -l >> 11 >> [root@localhost ~]# mv usrmove.conf /etc/ld.so.conf.d/ >> [root@localhost ~]# ldconfig >> [root@localhost ~]# ldconfig -p | wc -l >> 825 >> [root@localhost ~]# ldconfig -p | grep usr | wc -l >> 824 >> [root@localhost ~]# ldconfig -p | grep -v usr >> 824 libs found in cache `/etc/ld.so.cache' >> [root@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? You must be right; mentioning one of the two default directories pushes it up the "priority" list and mentioning both gives a different result. [root@localhost ~]# cd /etc/ld.so.conf.d/ [root@localhost ld.so.conf.d]# vi usrmove.conf [root@localhost ld.so.conf.d]# cat usrmove.conf /usr/lib /lib [root@localhost ld.so.conf.d]# ldconfig [root@localhost ld.so.conf.d]# ldconfig -p | grep usr | wc -l 824 [root@localhost ld.so.conf.d]# vi usrmove.conf [root@localhost ld.so.conf.d]# cat usrmove.conf /lib /usr/lib [root@localhost ld.so.conf.d]# ldconfig [root@localhost ld.so.conf.d]# ldconfig -p | grep usr | wc -l 11 [root@localhost ld.so.conf.d]# -- test mailing list test@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe: https://admin.fedoraproject.org/mailman/listinfo/test