Gentoo Archives: gentoo-dev

From: Paul de Vrieze <pauldv@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] DEPEND vs. RDEPEND refresher
Date: Fri, 30 Jan 2004 22:15:59
Message-Id: 200401302305.59189.pauldv@gentoo.org
In Reply to: Re: [gentoo-dev] DEPEND vs. RDEPEND refresher by Jan Schubert
1 On Friday 30 January 2004 21:38, Jan Schubert wrote:
2 >
3 > So, where should i put runtime deps when installing from source? If i
4 > understood you right, neither RDEPEND nor DEPEND is the right place?
5
6 They should be in RDEPEND. There are basically three cases:
7 - Some package is only needed at compile time (e.g. autoconf), this needs to
8 be in DEPEND only
9 - Some package is only usefull at runtime (e.g. java for any binary java
10 package (this is most often done wrong ;-( ). This needs to be in RDEPEND
11 only
12 - Some package is needed at compile time and at runtime (e.g. openssl). This
13 Needs to be in both variables.
14
15 Basically when installing binary packages only runtime dependencies are taken
16 into account. If they are wrong that will obviously fail. When creating
17 packages without installing them only those packages in DEPEND need to be
18 merged. Further when cleaning all compile-time only dependencies can be
19 removed.
20
21 Paul
22
23 --
24 Paul de Vrieze
25 Gentoo Developer
26 Mail: pauldv@g.o
27 Homepage: http://www.devrieze.net