[Fedora-packaging] Re: ldconfig -X in scriptlets?

Miroslav Lichvar mlichvar at redhat.com
Thu Aug 6 13:18:06 UTC 2009


On Thu, Aug 06, 2009 at 11:39:41AM +0300, Axel Thimm wrote:
> > ldconfig has -X option which disables the symlink modifications, so
> > I'd like to propose adding the option to recommended %post (and
> > possibly also %postun) scriptlet to avoid such surprises.
> > 
> > Comments?
> 
> What would create the symlinks, if ldconfig -X is used everywhere?

rpm should do that as symlinks are packaged. If applications suddenly fail
to start we know there is a packaging bug. Ideally ldconfig wouldn't
touch packaged libraries at all and just update ld.so.cache.

Adding -X only to packages that need it won't help much though. I
didn't realize that to avoid the unexpected symlink modifications all
packages would have to use -X because in a transaction all %post
scripts are executed before old files are removed.

-- 
Miroslav Lichvar




More information about the Fedora-packaging mailing list