Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 384157

Summary: mandate GNU find
Product: Gentoo Hosted Projects Reporter: SpanKY <vapier>
Component: PMS/EAPIAssignee: PMS/EAPI <pms>
Status: RESOLVED FIXED    
Severity: normal CC: bsd+disabled
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard: in-eapi-5
Package list:
Runtime testing required: ---
Bug Depends on: 374099    
Bug Blocks: 174380    

Description SpanKY gentoo-dev 2011-09-23 04:27:14 UTC
in practice, we have people constantly using GNU find extensions in ebuilds and eclasses.  while many usages can be easily or semi-easily converted to POSIX find invocations, there are quite a number where conversion is non-trivial.  regardless of the difficulty, these changes often sit in the tree for a while before anyone notices and files a bug.

having non-Linux ports setup wrappers so that `find` hits `gfind` is however trivial as our experience with things like gsed and gmake have shown.

so let's mandate this and be done.  this will fix random flakiness that our non GNU users experience by virtue of having the same environment that developers develop and test in.  the overhead for these people is fairly minute -- on my 64bit system, the findutils package is less than 2MiB.
Comment 1 Fabian Groffen gentoo-dev 2011-09-23 06:49:01 UTC
Prefix has USERLAND=gnu, so this is already the case for Prefix systems, and not just for `find`.
Comment 2 Ulrich Müller gentoo-dev 2011-09-23 07:35:02 UTC
"In EAPIs XYZ, find and xargs must be available, and must support all forms of invocations valid for GNU findutils version 4.4 or later."

Is 4.4 o.k. as version requirement?
Comment 3 SpanKY gentoo-dev 2011-09-23 14:24:12 UTC
4.4+ sounds fine to me
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-11-16 17:18:36 UTC
No issue for Gentoo Prefix, removing from CC
Comment 5 Richard Yao (RETIRED) gentoo-dev 2012-08-14 16:07:18 UTC
This would cause problems for Gentoo FreeBSD, which uses the BSD find.
Comment 6 Ciaran McCreesh 2012-08-14 16:12:18 UTC
(In reply to comment #5)
> This would cause problems for Gentoo FreeBSD, which uses the BSD find.

And GNU find can't be made available?
Comment 7 Alexis Ballier gentoo-dev 2012-08-14 16:22:09 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > This would cause problems for Gentoo FreeBSD, which uses the BSD find.
> 
> And GNU find can't be made available?

it is available and ebuilds have been seeing GNU find as find for a while.
Comment 8 Richard Yao (RETIRED) gentoo-dev 2012-08-14 16:43:54 UTC
ulm pointed out that aliases are in /var/cvsroot/gentoo-x86/profiles/default/bsd/fbsd/profile.bashrc, which I did not know about. This will not cause any problems for Gentoo/FreeBSD.