I unmerged lcms from my system because depclean listed it as unused by anything. Now if I try to start amarok I get an error: amarok: error while loading shared libraries: liblcms.so.1: cannot open shared object file: No such file or directory So obviously amarok was using it, despite the fact that it isn't listed as a dependency, and doing emerge -pv --deep --update world doesn't request it be installed. So somewhere along the line there should be a dep on lcms, or it should be explicitly disabled if lcms is not in the use flags.
Not quite. You can track this down to libmng as dependency of Qt. When you don't want the linker to include unnecessarily every single dynamic library of the whole dependecy chain, you have to use the --as-needed linker flag. http://www.gentoo.org/proj/en/qa/asneeded.xml
*** Bug 174828 has been marked as a duplicate of this bug. ***