Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91410 - find's args in cdrom_locate_file_on_cd() in eutils.class need reorder
Summary: find's args in cdrom_locate_file_on_cd() in eutils.class need reorder
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-04 04:37 UTC by gent_bz
Modified: 2005-05-04 15:06 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 gent_bz 2005-05-04 04:37:48 UTC
The line

     [[ ! -z $(find ${mline}/${dir} -iname ${file} -maxdepth 1 ) ]] \

in cdrom_locate_file_on_cd() in eutils.class appears to cause the following warning :

find: warning: you have specified the -maxdepth option after a non-option argument -iname, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

Moving "-maxdepth 1" to before "-iname" resolves this.

Came across this using a baldurs gate ebuild (found via the forums), but the warning would likely be triggered by any call to cdrom_locate_file_on_cd() (and therefore by a call to cdrom_get_cds() and cdrom_load_next_cd())

Reproducible: Always
Steps to Reproduce:
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2005-05-04 15:06:00 UTC
Fixed in CVS