Re: ldconfig -X in scriptlets?

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

 



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

Attachment: pgp69voutTRzb.pgp
Description: PGP signature

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux