#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
-------------------------+--------------------------------------------------

Comment(by synthehol):

 I usually automate the build of my system, which used to result in a file
 looking like this:

 {{{
 # Begin /etc/ld.so.conf

 /usr/local/lib
 /opt/lib

 # End /etc/ld.so.conf
 # Begin qt addition to /etc/ld.so.conf

 /opt/qt/lib

 # End qt addition
 # Begin kde addition to /etc/ld.so.conf

 /opt/kde/lib

 # End kde addition
 # Begin gnome addition to /etc/ld.so.conf

 /opt/gnome/lib

 # End gnome addition
 }}}

 I agree that if people do not like the way this looks, they can easily
 remove the clutter themselves. But this ''is'' the result when following
 BLFS to the letter.

 Changing the BLFS instructions should fix this:

 <start>[[BR]]
 Create a new dynamic loader configuration file for <package>, or manually
 add
 the directories to /etc/ld.so.conf:

 {{{
 cat > /etc/ld.so.conf.d/<package>.conf << "EOF"
 # Begin <package> addition to the dynamic loader search paths

 /opt/<package>-<version>/lib

 # End <package> addition
 EOF
 }}}
 <end>

 In BLFS, the following packages suggest adding entries to ld.so.conf:
 ''Xorg, Gnome, Qt3, Qt4 and KDE''.
 Furthermore, grep tells me that ''gcc3, cdparanoia, sdl and the
 introduction'' mention ld.so.conf in some way.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2843#comment:5>
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