The cleanlinks script installed along with x11-misc/imake causes 'find' (either from sys-apps/findutils-4.3.8, the latest stable on x86, or from -4.3.8-r1, the latest unstable) to output a warning about the wrong ordering of its parameters: "find: warning: you have specified the -depth option after a non-option argument -type, but options are not positional (-depth affects tests specified before it as well as those specified after it). Please specify options before other arguments." The offending command appears at line 26 of /usr/bin/cleanlinks : find . -type d -depth -empty -print -exec rmdir {} \; Simply swapping '-type d' and '-depth' solves the issue. Googling around, I found that this problem started being reported about 2 years ago, but it has not been resolved by upstream. Since it's just a cosmetic problem, and I believe that upstream won't fix it, I think that a simple patch would suffice. I know that the cleanlinks script is not safe neither versatile, but some old packages still rely on it (see games-emulation/epsxe-1.6.0-r3, for example).
Report to https://bugs.freedesktop.org/, please.