On Tue, Apr 25, 2006 at 09:53:58AM +0300, Alin Nastac wrote:
> Lets say a package foo depends on bar, both at compile time and run time.
> Shouldn't DEPEND _and_ RDEPEND of the foo package reflect that
> dependency? I usually set DEPEND="$RDEPEND ..." or vice-versa (depending
> on which is the most demanding). Am I utterly wrong here?

Unless there's been a change I'm not aware of, that's right. You should
often use something similar to
 COMMON="..."
 DEPEND="$COMMON ..."
 RDEPEND="$COMMON ..."
when not exactly all of $DEPEND is part of RDEPEND or vice versa though.

> I know that when a package is installed the usual way (not from a binary
> tarball) dependencies==RDEPEND+DEPEND, but portage functionality could
> change in the future. It may not be the wisest decision ever made, but
> portage could very well remove whatever dependencies are found in DEPEND
> - RDEPEND, once the package is installed.

You already mentioned binary packages. In addition to that, I think bad
dependencies can break things even under current portage versions by
building with ROOT set.

Something worth noting is that if RDEPEND is unset, it defaults to
$DEPEND, so in some cases, DEPEND="..." can be enough even if there are
also runtime dependencies. However, if RDEPEND is set at all, it should
be complete (except that system packages of course can be omitted).
-- 
gentoo-dev@gentoo.org mailing list

Reply via email to