[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    Re: [gentoo-dev] DEPEND/RDEPEND question
From:       Carsten Lohrke <carlo () gentoo ! org>
Date:       2006-04-30 13:52:08
Message-ID: 200604301552.23097.carlo () gentoo ! org
[Download RAW message or body]

On Tuesday 25 April 2006 08:53, 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?

This is right, when there're more dependencies in DEPEND than in RDEPEND. If 
DEPEND == RDEPEND you should leave either one unset, as Portage assumes that 
DEPEND == RDEPEND in that case.


To quote the ebuild policy: 

"The DEPEND variable inside your foo-x.y.z.ebuild tells Portage about which 
packages are needed to build foo. The RDEPEND variable specifies which 
packages are needed for foo to run. You only need to explicitly specify 
RDEPEND if the ebuild's runtime dependencies are different than what you 
specified in DEPEND; if not specified, RDEPEND will default to your DEPEND 
settings. Never set RDEPEND to DEPEND yourself in an ebuild."


Carsten

[Attachment #3 (application/pgp-signature)]
-- 
gentoo-dev@gentoo.org mailing list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic