[Bug 693074] Re: %update_icon_cache should not be gtk+2 specific

Elan Ruusamäe 693074 at bugs.launchpad.net
Tue Dec 21 19:37:53 CET 2010


gtk+2 change made as trigger instead:

http://cvs.pld-linux.org/cgi-
bin/cvsweb.cgi/packages/gtk+2/gtk%2B2.spec.diff?r1=1.340;r2=1.341;f=h

-- 
You received this bug notification because you are subscribed to PLD
Linux.
https://bugs.launchpad.net/bugs/693074

Title:
  %update_icon_cache should not be gtk+2 specific

Status in PLD Linux Distribution:
  In Progress

Bug description:
  a package places icon into /usr/share/icons/hicolor, it should invoke %update_icon_cache

but currently the macro is dependant on gtk+2 install:
$ rpm -E %update_icon_cache
{ \
        umask 022; \
        /usr/bin/gtk-update-icon-cache -qf /usr/share/icons/%1; \
};

$ rpm -qf /usr/bin/gtk-update-icon-cache
gtk+2-2.22.1-2.x86_64

yet icons are not qt-specific, nor gtk+2 specific

the scriptlet should conditionally invoke cache update, not depend on gtk+2 presence:

the tasklist:
1. change %update_icon_cache to call gtk-update-icon-cache only if present
2. make gtk+2 %post call %update_icon_cache
3. remove Requires(post,postun):  gtk+2 from packages only calling %update_icon_cache




More information about the pld-bugs mailing list