Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125919 - portage 2.1_pre6 complains about find options when using INSTALL_MASK
Summary: portage 2.1_pre6 complains about find options when using INSTALL_MASK
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2006-03-12 04:53 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2006-03-12 06:08 UTC (History)
0 users

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


Attachments
use -path instead of -name for compatibility with BSDish find (find-path.patch,490 bytes, patch)
2006-03-12 05:02 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2006-03-12 04:53:55 UTC
When having INSTALL_MASK set to a directory (like /usr/share/info, as it's done by FEATURES=noinfo), latest portage complains about find options used incorrectly:

find: warning: Unix filenames usually don't contain slashes (though pathnames do).  That means that '-name /usr/share/info' will probably evaluate to false all the time on this system.  You might find the '-wholename' test more useful, or perhaps '-samefile'.  Alternatively, if you are using GNU grep, you could use 'find ... -print0 | grep -FzZ /usr/share/info'.

As the warning tells, -wholename would probably do the right thing, but that's a GNU specific option; rather the -path option does the same thing and it's supported also by BSDish find.

HTH,
Diego
Comment 1 Zac Medico gentoo-dev 2006-03-12 05:02:09 UTC
Created attachment 81970 [details, diff]
use -path instead of -name for compatibility with BSDish find

Will this work for everyone?
Comment 2 Zac Medico gentoo-dev 2006-03-12 06:08:34 UTC
Thanks, this is in svn r2863 and released in 2.1_pre6-r1.