#2843: Make ld.so.conf include files from /etc/ld.so.conf.d
-------------------------+--------------------------------------------------
 Reporter:  synthehol    |       Owner:  lfs-book@…                     
     Type:  enhancement  |      Status:  new                            
 Priority:  normal       |   Milestone:  6.9                            
Component:  Book         |     Version:  SVN                            
 Severity:  normal       |    Keywords:  glibc dynamic loader ld.so.conf
-------------------------+--------------------------------------------------
 Currently, LFS lists directories containing libraries directly in
 /etc/ld.so.conf. However, there are advantages in changing the contents of
 ld.so.conf to "include /etc/ld.so.conf.d/*.conf", and then place it's
 current contents in /etc/ld.so.conf.d/glibc.conf.

 Personally, I have been using this method for years (and so have the big
 distributions) and found it to be the more elegant solution.

 Advantages become apparent when you use BLFS and/or often (un)install
 software in /opt:

 Each new package requiring additional search paths can store them in their
 own file, meaning ld.so.conf does not have to be modified any more; No
 chance of accidentally removing existing paths or cluttering up the file.
 When uninstalling a package, in stead of modifying ld.so.conf again, you
 can simply delete the configuration file belonging to that package.

 Concerns:

 Both LFS and BLFS should be modified. Only modifying LFS defeats the
 purpose of the change.

 Should BLFS be modified accordingly, people who blindly copy-paste
 commands and have an older version of LFS installed (and therefore do not
 have ld.so.conf.d) will experience problems. To limit this as much as
 possible, BLFS should (at least temporarily) warn "Make sure you have set
 up /etc/ld.so.conf.d as explained in LFS-6.9 and if not, make this change
 now.".

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2843>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to