icon cache scriplet guideline update

Miloslav Trmac mitr at redhat.com
Wed Dec 20 21:15:27 UTC 2006


Ralf Ertzinger napsal(a):
> "Chitlesh GOORAH" <chitlesh at fedoraproject.org> wrote:
>> When installing more than 2 rpms with yum with scriptlets,
>> installation is quite slow since for each rpm it has to
>> %{_bindir}/xdg-icon-resource forceupdate --theme hicolor  || :
>> why not telling yum to do it once only ?
> I am not convinced that this can be done in a sane way, and I am,
> quite frankly, amazed that it does seem to work with %post -p
> (most often used with %post -p /sbin/ldconfig, as it seems).
-p /sbin/ldconfig is special-cased within rpm.  It is not a generally
available feature.

> Assume you have three packages scheduled for update, A, B, and C.
> A and C provide libraries, and use "%post -p /sbin/ldconfig". As
> I understand it, rpm will only execute ldconfig once, at the end
> of the transaction.
> 
> Now assume that B calls something in it's %post section that depends
> on a library installed from A. Will the linker find the library, if
> there has been a change of SONAME?
IIRC rpm does know it needs run ldconfig before any further scriptlets.
	Mirek




More information about the Fedora-maintainers mailing list