I emerged kdesdk-scripts (actually kdesdk-meta) specifically to get optimizegraphics, which is just a wrapper script for optipng and advdef (in the optipng and advancecomp packages, respectively). Those two packages were not pulled in automatically, so of course optimizegraphics failed until I emerged them myself. Reproducible: Always Steps to Reproduce: 1. emerge kdesdk-scripts 2. run optimizegraphics 3. Actual Results: it complains about not finding optipng and advdef Expected Results: The packages containing those apps would have been pulled in as dependencies of kdesdk-scripts. I'm not sure if they should be added as dependencies, or would that cause too many packages to be pulled in based on such needs of other scripts in the package? An alternate approach would be adding a png use flag to kdesdk-scripts to control the dependency, or would that be considered a misuse of use flags? At minimum, how about displaying some sort of message that you need to manually emerge any packages actually needed by the scripts.
Makes sense - added in 4.5.3 and later.