after upgrading shared-mime-info from 0.60 to 0.70, almost every icon disappeared from my gnome downgrading to 0.60 fixed it Reproducible: Always Steps to Reproduce:
Reading glib-2.22.2 changelog suggests that cache-format might have changed again. Could you follow instruction for the > 0.30 migration again ? If that doesn't work, could you try installing glib from the gnome overlay ?
This is the message: "The database format has changed between 0.30 and 0.40." "You may need to update all your local databases and caches." "To do so, please run the following commands:" "(for each user) $ update-mime-database ~/.local/share/mime/" "(as root) # update-mime-database /usr/local/share/mime/" Test above also for 0.60 to 0.70 migration, if it's required we can update the message for 0.70 ebuild.
(In reply to comment #2) > This is the message: > > "The database format has changed between 0.30 and 0.40." > "You may need to update all your local databases and caches." > "To do so, please run the following commands:" > "(for each user) $ update-mime-database ~/.local/share/mime/" > "(as root) # update-mime-database /usr/local/share/mime/" > > Test above also for 0.60 to 0.70 migration, if it's required we can update the > message for 0.70 ebuild. > It worked for me except I had to do it (as root) for /usr/share/mime (I don't have a /usr/local/share/mime on my system, but I guess I'd have to do it for that one too if I did.)
(In reply to comment #3) > It worked for me except I had to do it (as root) for /usr/share/mime (I don't > have a /usr/local/share/mime on my system, but I guess I'd have to do it for > that one too if I did.) That doesn't make much sense since the end of emerge (postinst phase) for shared-mime-info is taking care of that already... so I'm still clueless what exactly worked for you :)
Updated message added.
Sorry...
*** Bug 288415 has been marked as a duplicate of this bug. ***
*** Bug 288461 has been marked as a duplicate of this bug. ***
*** Bug 288538 has been marked as a duplicate of this bug. ***
It seems to be a glib issue. The latest glib in tree is only 2.20.5, so can you reopen this.
(In reply to comment #10) > It seems to be a glib issue. The latest glib in tree is only 2.20.5, so can you > reopen this. > Nope. New glib will enhance it's support, but it's fine with old glib too.
(In reply to comment #11) > (In reply to comment #10) > > It seems to be a glib issue. The latest glib in tree is only 2.20.5, so can you > > reopen this. > > > > Nope. New glib will enhance it's support, but it's fine with old glib too. > Sorry, if i missed something, but i followed the elog instructions and all files have icons of txt or executables. downgrading to 0.60 solved the issue. I don't have ~/.local/share/mime or /usr/local/share/mime. So like in Comment #3, i ran the command on /usr/share/mime. A google search pointed to https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/444962 where the last comments confirm the glib update as a fix. Cheers!
(In reply to comment #11) > (In reply to comment #10) > > It seems to be a glib issue. The latest glib in tree is only 2.20.5, so can you > > reopen this. > > > > Nope. New glib will enhance it's support, but it's fine with old glib too. > Yes, got around to installing glib-2.22.2 from the gnome-overlay. Didn't fix much. Then, i guessed the problem may be application specific. So installed thunar and icons where ok. Filed a bug against pcmanfm-0.5.1 https://bugs.gentoo.org/show_bug.cgi?id=288820 Sorry for the noise. Cheers.
*** Bug 288865 has been marked as a duplicate of this bug. ***
*** Bug 289034 has been marked as a duplicate of this bug. ***
*** Bug 289194 has been marked as a duplicate of this bug. ***
*** Bug 289289 has been marked as a duplicate of this bug. ***
*** Bug 289316 has been marked as a duplicate of this bug. ***
*** Bug 289346 has been marked as a duplicate of this bug. ***
*** Bug 289271 has been marked as a duplicate of this bug. ***
*** Bug 289559 has been marked as a duplicate of this bug. ***
Message still points to a wrong directory /usr/local/share/mime/ instead of /usr/share/mime/ For me message should be an ewarn since it break things and not just an elog. According to the number of bugs marked as duplicated this one is maybe closed as the solution is known, but it is clearly not clear enough for gentoo users.
(In reply to comment #22) > Message still points to a wrong directory /usr/local/share/mime/ instead of > /usr/share/mime/ No, no, no and no! Read the message. /usr/share/mime is done by the ebuild directly. The other 2 are left for _you_ to do because portage *is not allowed* to get anywhere near them. > According to the number of bugs marked as duplicated this one is maybe closed > as the solution is known, but it is clearly not clear enough for gentoo users. If you find a better solution, let us know...
(In reply to comment #23) > (In reply to comment #22) > > Message still points to a wrong directory /usr/local/share/mime/ instead of > > /usr/share/mime/ > > No, no, no and no! Read the message. /usr/share/mime is done by the ebuild > directly. The other 2 are left for _you_ to do because portage *is not allowed* to get anywhere near them. ok, understood > > > According to the number of bugs marked as duplicated this one is maybe closed > > as the solution is known, but it is clearly not clear enough for gentoo users. > > If you find a better solution, let us know... > At least make the elog about this thing to be ewarn, this way it is summarized at the end of the emerge. Right now it is lost in the tons of log of an emerge world. Does it sound like a good idea ? (one duplicate nug each day is a lot)
Yes, *please* add a serious warning to the ebuild, because the incompatible change of DB format results in major system breakage ! It's the first time that I waste 2 days on a bug that is _old news_ and by which nobody should get bitten anymore today. PS: No hate at all for Gentoo - I know upstream was at fault here. But Gentoo should warn users !
*** Bug 267254 has been marked as a duplicate of this bug. ***
I think we should seriously consider creating a patch to glib that, for ~/.local/share/mime updates the database automatically, if the database version is wrong.