Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191151 - (x11-misc/imake - cleanlinks script causes 'find' to give warning
Summary: (x11-misc/imake - cleanlinks script causes 'find' to give warning
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-03 13:10 UTC by Marco Leogrande
Modified: 2007-09-03 14:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Leogrande 2007-09-03 13:10:55 UTC
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).
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-03 14:02:13 UTC
Report to https://bugs.freedesktop.org/, please.