After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 675910 - Trouble with gtk-update-icon-cache hooks
Trouble with gtk-update-icon-cache hooks
Status: RESOLVED FIXED
Product: gnome-themes-standard
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gnome-themes-standard-maint
gnome-themes-standard-maint
Depends on:
Blocks:
 
 
Reported: 2012-05-11 22:02 UTC by Kalev Lember
Modified: 2012-05-14 19:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
HighContrast: Don't update the icon cache (1.53 KB, patch)
2012-05-11 22:02 UTC, Kalev Lember
none Details | Review
Add hooks for updating gtk icon cache (2.83 KB, patch)
2012-05-14 16:10 UTC, Kalev Lember
committed Details | Review

Description Kalev Lember 2012-05-11 22:02:04 UTC
http://git.gnome.org/browse/gnome-themes-standard/commit/?id=e0841e2c added gtk-update-icon-cache hooks for 'make install' and 'make uninstall', but this has some issues:

 - the caches are only generated for the HighContrast theme, but missing for the rest of the themes;
 - the caches are generated even if DESTDIR is set, which can cause trouble for binary distros

Binary distros usually don't include cache files in binary packages, but instead regenerate them after package installation at the end user's machine. Because of that, they don't want the icon cache regeneration during build time.

When DESTDIR is set, it's a good indication that the cache files should be left alone. Evince is a good example how to do that: http://git.gnome.org/browse/evince/tree/data/Makefile.am?id=3.4.0#n67
Comment 1 Kalev Lember 2012-05-11 22:02:38 UTC
Created attachment 213890 [details] [review]
HighContrast: Don't update the icon cache

None of the other themes in gnome-themes-standard besides HighContrast
run gtk-update-icon-cache, so remove it from this theme as well for
consistency.
Comment 2 Kalev Lember 2012-05-14 16:10:45 UTC
Created attachment 214009 [details] [review]
Add hooks for updating gtk icon cache

An alternative patch that adds gtk-update-icon-cache hooks to all the themes, and fixes up the existing one in HighContrast to skip cache rebuilding when DESTDIR is set.
Comment 3 Cosimo Cecchi 2012-05-14 19:32:41 UTC
Attachment 214009 [details] pushed as 00b7f4a - Add hooks for updating gtk icon cache

Thanks, pushed to master and gnome-3-4. Will be in today's 3.4.2.