Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170665 - do not require `which` at all
Summary: do not require `which` at all
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All All
: High normal
Assignee: Package Manager Specification
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-12 22:22 UTC by SpanKY
Modified: 2007-03-15 00:12 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 SpanKY gentoo-dev 2007-03-12 22:22:00 UTC
the `which` program is not standard (not listed in any POSIX specs) and as such has many different incompatible implementations ... some versions echo errors to stderr, some to stdout ... some versions exit with 1 when the file was not in PATH, some always exist with 0 ... different versions take different options

since we require bash-3.0+, we can rely on `type -p`, and ebuilds should be using that (since it's a builtin!)
Comment 1 Ciaran McCreesh 2007-03-12 22:43:59 UTC
Ebuilds should be, but aren't... Would have to get the tree fixed first...
Comment 2 SpanKY gentoo-dev 2007-03-12 22:51:19 UTC
i dont think fixing this issue relies on fixing the tree first

fixing the spec and fixing the tree can be done in parallel
Comment 3 Stephen Bennett (RETIRED) gentoo-dev 2007-03-15 00:11:48 UTC
r91 no longer specifies which.