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

Elan Ruusamäe 693074 at bugs.launchpad.net
Tue Dec 21 18:12:56 CET 2010


- rpm-build-macros-1.596-1.src.rpm released [1]
- BuildRequires.txt updated [2]

[1] http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/rpm-build-macros/rpm-build-macros.spec.diff?r1=1.280;r2=1.281;f=h
[2] http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/PLD-doc/BuildRequires.txt.diff?r1=1.152;r2=1.153;sortby=date;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