Gentoo Archives: gentoo-dev

From: Ned Ludd <solar@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] dont use `which` in ebuilds
Date: Fri, 16 Mar 2007 22:19:15
Message-Id: 1174083387.18885.26.camel@onyx.private.gni.com
In Reply to: Re: [gentoo-dev] dont use `which` in ebuilds by Mike Frysinger
1 On Mon, 2007-03-12 at 19:15 -0400, Mike Frysinger wrote:
2 > On Monday 12 March 2007, Mike Frysinger wrote:
3 > > instead, since we require bash for our ebuilds, use the builtin `type -p`
4 >
5 > err i botched that ;)
6 >
7 > `type -p` is almost a complete drop in replacement for which ... it does not
8 > work on bash builtins however, so people should use `type -P` to force the
9 > PATH search
10 >
11 > in other words, `type -p echo` would return "" while `type -P echo` would
12 > return "/bin/echo"
13 > -mike
14
15
16 Here are the remaining offenders for sync 1174037821 that match
17 '$(which ' or '`which ' in eclasses and ebuilds.
18
19 eclass/mysql.eclass:529:
20 eclass/mysql.eclass:530:
21 app-dicts/stardict/stardict-2.4.8.ebuild:42:
22 sci-mathematics/octave/octave-2.1.57-r1.ebuild:34:
23 sci-mathematics/octave/octave-2.1.69.ebuild:36:
24 www-apps/lxr/lxr-0.3.1.ebuild:37:
25 app-cdr/cdrkit/cdrkit-1.0.ebuild:26:
26 app-cdr/cdrkit/cdrkit-1.0_pre5.ebuild:30:
27 app-cdr/cdrkit/cdrkit-1.1.0.ebuild:28:
28 app-cdr/cdrkit/cdrkit-1.1.1.ebuild:28:
29 app-cdr/cdrkit/cdrkit-1.1.2.ebuild:28:
30 app-dicts/verbiste/verbiste-0.1.16.ebuild:28:
31 app-text/pdftk/pdftk-1.12.ebuild:20:
32 dev-db/hsqldb/hsqldb-1.7.3.1-r1.ebuild:48:
33 dev-util/kdesvn/kdesvn-0.11.1.ebuild:34:
34 dev-util/kdesvn/kdesvn-0.11.1.ebuild:35:
35 media-libs/pdflib/pdflib-5.0.4_p1-r1.ebuild:39:
36 media-libs/pdflib/pdflib-6.0.3-r1.ebuild:48:
37 media-libs/pdflib/pdflib-6.0.3.ebuild:38:
38 sys-process/fcron/fcron-2.0.2.ebuild:28:
39 sys-process/fcron/fcron-2.9.5.1.ebuild:31:
40 sys-process/fcron/fcron-2.9.7.ebuild:26:
41 sys-process/fcron/fcron-3.0.0.ebuild:33:
42 sys-process/fcron/fcron-3.0.1-r1.ebuild:33:
43 sys-process/fcron/fcron-3.0.1.ebuild:33:
44
45 --
46 Ned Ludd <solar@g.o>
47 Gentoo Linux
48
49 --
50 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] dont use `which` in ebuilds "Petteri Räty" <betelgeuse@g.o>
Re: [gentoo-dev] dont use `which` in ebuilds Danny van Dyk <kugelfang@g.o>
Re: [gentoo-dev] dont use `which` in ebuilds Luca Longinotti <chtekk@g.o>