Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199110 - x11-themes/gartoon and new gtk+-2.12.1-r1 cause icon cache errors
Summary: x11-themes/gartoon and new gtk+-2.12.1-r1 cause icon cache errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-14 01:51 UTC by subs
Modified: 2008-01-07 19:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild that solves this issue (gartoon-0.5-r3.ebuild,1.33 KB, text/plain)
2007-12-28 13:55 UTC, Henrique Rodrigues
Details
patch to solve this issue (patch,347 bytes, patch)
2007-12-28 13:56 UTC, Henrique Rodrigues
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description subs 2007-11-14 01:51:12 UTC
When the gartoon icon theme is installed along with the new gtk+-2.12.1-r1 version, gtk-update-icon-cache cannot build the icon cache. This causes a lengthy delay upon installation of gnome-based ebuilds since they call for gtk-update-icon-cache to run in post_install. You will notice this error:

* Updating icons cache ...
The generated cache was invalid.                                          [!!]

Reproducible: Always

Steps to Reproduce:
1. Update to latest gtk+
2. Install x11-themes/gartoon
3. Install any gnome package that builds the icon cache.
4. Notice lengthy delay and cache error.

Actual Results:  
After noticing the error above I went through /usr/share/icons and ran gtk-update-icon-cache -f /usr/share/icons/{DIR} and noticed that gartoon was the only offending icon theme. It would say "The generated icon cache is invalid" There could be others.

Expected Results:  
Update the cache successfully.

The removal of x11-themes/gartoon also removed the error. I had this occur on both  x86 & amd64 boxes running stable.
Comment 1 Henrique Rodrigues 2007-11-17 10:36:53 UTC
This happens to me too on PPC.
Comment 2 Pacho Ramos gentoo-dev 2007-11-17 16:21:09 UTC
I am also suffering this problem in all my machines (amd64 and x86) after upgrading to gtk-2.12, and I don't have this icon set installed :-/
Comment 3 Pacho Ramos gentoo-dev 2007-11-17 16:34:24 UTC
Seemed caused by an "external" icon set, I get no error after removing all orphaned icon-sets in /usr/share/icons 

Sorry for the inconvenience
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2007-11-17 19:34:15 UTC
This bug in gartoon has been around long before GTK+-2.12 was release.. well, I've known about it but haven't had time or intrest to look at it yet, patch would be nice.
Comment 5 Henrique Rodrigues 2007-12-19 20:13:42 UTC
Hey, I think I found a solution to the problem! Just delete the file gartoon-pallete.svg, which doesn't seem to be used anyway, and everything should be OK:

$ rm /usr/share/icons/gartoon/gartoon-pallete.svg
$ gtk-update-icon-cache -f /usr/share/icons/gartoon/
Cache file created successfully.

Man, I was sick of that error message. Can you guys reproduce the solution?
Comment 6 Henrique Rodrigues 2007-12-28 13:55:25 UTC
Created attachment 139514 [details]
ebuild that solves this issue

This is an ebuild that solves the issue presented in this bug report. The only change is not installing the offending file.
Comment 7 Henrique Rodrigues 2007-12-28 13:56:12 UTC
Created attachment 139516 [details, diff]
patch to solve this issue
Comment 8 Krzysztof Pawlik (RETIRED) gentoo-dev 2008-01-07 10:39:49 UTC
Commited:

Using commit message:
------------------------------------------------------------------------------
Remove gartoon-pallete.svg to fix icon cache generation, see bug #199110.
(Portage version: 2.1.4_rc14)
------------------------------------------------------------------------------
Comment 9 Henrique Rodrigues 2008-01-07 19:06:51 UTC
Shouldn't there be an incremented version bump (example: 0.5-r3), so that this fix applies to everyone that already has gartoon installed?