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

Axel Thimm Axel.Thimm at ATrpms.net
Thu Aug 6 08:39:41 UTC 2009


Hi,

On Wed, Aug 05, 2009 at 05:07:18PM +0200, Miroslav Lichvar wrote:
> I've recently come across an ldconfig issue when updating libraries.
> Apparently rpm doesn't always call ldconfig in %postun, I've filed bug
> #513224 for that. It doesn't seem to be a real bug though.
> 
> The problem is that when ldconfig in %post is called, there are both
> old and new libraries on disk. If ldconfig thinks that the older
> library is newer (according to some internal sorting function) it
> will replace the packaged symlink with one that points to the other
> library. After the older library is removed, next ldconfig call will
> change the symlink back. But is this correct? If %post scriptlet had a
> code that used the library, it would actually used the older one.

Or another package Requiring it in the same rpm transaction.

> 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?
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-packaging/attachments/20090806/d9031daa/attachment.sig>


More information about the Fedora-packaging mailing list