Gentoo Archives: gentoo-dev

From: Drake Wyrm <wyrm@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] variable quoting, setting optional variables to "", and depending on virtual/libc
Date: Sat, 17 Jun 2006 06:05:46
Message-Id: 20060617060227.GA20106@phaenix.haell.com
In Reply to: [gentoo-dev] variable quoting, setting optional variables to "", and depending on virtual/libc by Thomas Cort
1 Thomas Cort <tcort@g.o> wrote:
2 > What is the proper quoting style for using epatch? In the tree there
3 > are about 3 different styles...
4 <snip>
5 > What is the proper quoting style for defining the S variable? In the
6 > tree there are about 3 different styles...
7 It might be prudent to quote the variables, in case somebody, for
8 whatever reason, has strange characters in assorted paths.
9
10 > What is the purpose of setting DEPEND and RDEPEND to "" if DEPEND and
11 > RDEPEND are optional[1][2]? Isn't that just a waste of disk space /
12 > bandwidth? DEPEND="virtual/libc" seems like a waste too as it is an
13 > implicit system dependency[3], any reason for using it?
14 >
15 > DEPEND="" # used by 1479 ebuilds
16 > RDEPEND="" # used by 884 ebuilds
17 These two are probably not necessary, but some devs might prefer to use
18 them in their ebuilds for the sake of explicitly stating the implied.
19
20 > DEPEND="virtual/libc" # used by 809 ebuilds
21 There are opinions on both sides of this subject, but I think that most
22 devs are starting to see the value in this. If a package requires some
23 other package, say so. It may be a bit more work (twelve keystrokes),
24 but it's worth the extra effort (twelve keystrokes) to be complete.
25
26 --
27 twelve keystrokes

Replies