aesenadorjr
Group: Members
Posts: 11
Joined: Feb. 2005 |
|
Posted: Feb. 25 2005,06:01 |
|
I was just reading this wiki entry from linuxquestions.org about ldconfig.
http://wiki.linuxquestions.org/wiki/Library-related_Commands_and_Files
I would like to paraphrase the entry on ldconfig for my own benefit. It says that if new dynamic library files are added in the directory tree, just edit the ld.so.conf to add the paths to the library files and then run ldconfig. This will search through all the paths listed in ld.so.conf, create the necessary symlinks, and update the ld.so.cache.
Now, if I may use the newly-found knowledge to this thread, the file ld.so.cache should never be touched directly by any loading of dsl extensions. First inspect the contents of the ld.so.conf inside his prospective .dsl package and compare it with that of /KNOPPIX/etc/ld.so.conf. If they match, remove the one inside the .dsl package. If they do not match, ensure that the new ld.so.conf also contains everything in the old one (edit if necessary) and include it in the .dsl package. Either way, whoever loads that .dsl package must be alerted to run ldconfig after loading.
If I am still correct so far, then I would like to solicit opinions about revising the /etc/init.d/mydsl-install script such that changes to the ld.so.conf will be detected and will cause ldconfig to run. This can be applicable only to .dsl extensions.
OK, now I want to know my grade on this one...
|