Running ldconfig after the RPM transaction
by Dan Čermák
Hi list,
it has been recently proposed to switch openSUSE to run ldconfig via a
%transfiletriggerin/-un scriptlet instead of manually in %post & %postun
the same way as Fedora does it at the moment.
However, an interesting issue has been raised: what happens if package A
gets upgraded in the same transaction as package B, but B needs A during
the upgrade. A will install a new shared library, but ldconfig will run
after B has already tried to upgrade.
Do we have some mechanism to prevent this? Or does this essentially
never happen in practice?
The only "workaround" that came up was to use ordinary file triggers,
but that is not a great idea either these would fire way too frequently
(as mentioned by Florian Weimer on this list in 2018: [1]).
Cheers,
Dan
Footnotes:
[1] https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.o...
2 years, 6 months