On Sun, 16 Oct 2011, Markus Lude wrote: > Hello, > > I reported this some time ago to the maintainer, but the missing depends > wasn't added so far. > > If one installs k3b without installed gtk+2 one gets the following: > > ===> Installing k3b-1.0.4p7 from /usr/ports/packages/sparc64/all/ > /bin/sh: /usr/local/bin/gtk-update-icon-cache: not found > system(/bin/sh, -c, /usr/local/bin/gtk-update-icon-cache -q -f -t > /usr/local/share/icons/hicolor) failed: exit(127) > k3b-1.0.4p7: ok > > Diff attached.
No, we do not want to add a dependency on gtk+2 only for gtk-update-icon-cache. gtk-update-icon-cache is only useful for gtk applications and if you don't have gtk installed in the first place, it makes no sense to add a dependency on it since obviously nothing uses it. The correct fix is to use the right goo: @exec %D/bin/gtk-update-icon-cache -q -f -t %D/share/icons/hicolor 2> /dev/null || true @unexec-delete %D/bin/gtk-update-icon-cache -q -f -t %D/share/icons/hicolor 2> /dev/null || true Thanks for the report. -- Antoine