Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255358 - repoman check for {R,}DEPEND set
Summary: repoman check for {R,}DEPEND set
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 210077 254662 285191
  Show dependency tree
 
Reported: 2009-01-18 09:04 UTC by Peter Volkov (RETIRED)
Modified: 2009-09-16 15:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
detect case where DEPEND is set and RDEPEND is unset (rdepend_implicit.patch,2.82 KB, patch)
2009-01-18 23:19 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Volkov (RETIRED) gentoo-dev 2009-01-18 09:04:24 UTC
In spirit of the recent discussion on -dev:
http://archives.gentoo.org/gentoo-dev/msg_1c3b47875b87c9d0a2c93baf98698047.xml
I think it's good idea to add repoman check which will check that both DEPEND and RDEPEND are set in ebuild. This will helps us not to forget and set both as our policy suggests.
Comment 1 Zac Medico gentoo-dev 2009-01-18 20:38:54 UTC
RDEPEND is the only one that's set automatically, so shouldn't we only warn if there's no RDEPEND assignment?

Also, I can imagine that some ebuilds have empty DEPEND and RDEPEND (like things that really only depend on libc). For such cases, should we allow a missing RDEPEND assignment if DEPEND is also missing?
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2009-01-18 21:26:48 UTC
(In reply to comment #1)
> RDEPEND is the only one that's set automatically, so shouldn't we only warn if
> there's no RDEPEND assignment?
> 
> Also, I can imagine that some ebuilds have empty DEPEND and RDEPEND (like
> things that really only depend on libc). For such cases, should we allow a
> missing RDEPEND assignment if DEPEND is also missing?

First, emtpy != missing. We only care about missing here. If a packages really has no deps, it should state both DEPEND="" and RDEPEND="". As for the check, for now I suggest to only hceck for implicit RDEPEND assignments (RDEPEND is unset, DEPEND is non-emtpy) so it doesn't trigger for packages that get their deps completely from eclasses. If necessary it can later be adjusted to also check for unset DEPEND.
Comment 3 Zac Medico gentoo-dev 2009-01-18 23:19:42 UTC
Created attachment 178936 [details, diff]
detect case where DEPEND is set and RDEPEND is unset

Since it's only triggered when DEPEND is set, it avoids false positives in cases when all deps come from the eclass(es).
Comment 4 Zac Medico gentoo-dev 2009-01-19 00:25:01 UTC
This is fixed in 2.1.6.7 and 2.2_rc23.