[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

How to handle ´/etc/ld.so.preload library packages?



I have a package with a library that needs to be entered to
/etc/ld.so.preload. It is clear that this library needs to go in /lib
rather than /usr/lib because there are systems that have /usr on a
dedicated partition.

But how do I handle the entry to /etc/ld.so.preload? There are
packages that leave the ld.so.preload entry to the user, but they
probably make the system fail when they are uninstalled and the user
forgets to manually remove the ld.so.preload entry.

So, how am I to deal with this in the packaging?

(1)
Don't add the lib to /etc/ld.so.preload, display a hint for the user
to do so, but remove the entry in the prerm if the package is to be
removed?

(2)
Ask the user if I should add the lib to /etc/ld.so.preload in the
postinst and automatically remove the entry in prerm? Does order in
/etc/ld.so.preload matter?

(3)
Do everything fully automatic?

Any comments will be appreciated.

Greetings
Marc

-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29



Reply to: