Bug 513224
Summary: | ldconfig not called in %postun | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miroslav Lichvar <mlichvar> |
Component: | rpm | Assignee: | Panu Matilainen <pmatilai> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 11 | CC: | chkr, ffesti, jakub, jnovy, mtasaka, pmatilai, rdieter, schwab |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-01-25 08:43:11 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 510246 |
Description
Miroslav Lichvar
2009-07-22 15:39:10 UTC
Suspecting ldconfig here. Reassigning. As a summary: symlink: libfoo.0 -> libfoo.0.1beta is updated to: libfoo.0 -> libfoo.0.1 by ldconfig. If ldconfig is not called, how can that be a bug in ldconfig? ldconfig is always called in %post and it changes the symlink from libfoo.0.1 to libfoo.0.1beta, which would be fixed in %postun if ldconfig was called. ldconfig always links to the newest version and libfoo.0.1beta is newer than libfoo.0.1, so the bug is that ldconfig is not called in %postun. ldconfig has -X option which seems to disable the symlink modifications. Maybe we could start using /sbin/ldconfig -X in %post instead? By the way this rpm "behaviour" caused bug 509635 and bug #510246 Except for forcefully downgrading rpms, newer rpms containing older SONAMEs sounds like a packager's bug to me. SONAME stays the same, only the filenames differ. In the bug #510246 calling ldconfig in %postun won't help, so I think there is nothing to fix in rpm. The packages should just use -X. Actually, to fix the problem in bug #510246 all packages would have to use -X in %post as the old libraries are removed after all %post have been run in a transaction. The easiest solution would be probably to not replace symlinks to existing files in ldconfig by default. As far as rpm not always calling ldconfig when it should, this has been fixed in rawhide for a while now. The issue is ages old and fairly rare, so no plans to fix it in F <= 12. |