Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 221537 - repoman should check for suspect RDEPEND
Summary: repoman should check for suspect RDEPEND
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
Depends on:
Blocks: 216231
  Show dependency tree
Reported: 2008-05-11 14:58 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2009-08-29 19:04 UTC (History)
0 users

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

implement a new RDEPEND.suspect check (suspect_rdepend.patch,2.82 KB, patch)
2008-05-14 18:01 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-05-11 14:58:15 UTC
There are a lot of packages that are only ever used at build time, and should thous not be depended upon with RDEPEND (easiest one to remember: autotools, but not limited to).

It would be nice if repoman checked for those and issued a notice if they are in RDEPEND. It shouldn't be an error because there are legit runtime dependencies for almost all of them, but at least the developer should be put on the lookout for a mistake.

For a list of possible packages to look for, check bug #221421.

FWIW I'm sure qaludis has this check because I did help with it a long time, adding a few packages to the list. I'm sure there are more packages though, which probably are used in sectors I don't work myself. Maybe we could put the list available on the CVS so that we can update them as new packages are added...
Comment 1 Zac Medico gentoo-dev 2008-05-14 18:01:50 UTC
Created attachment 153139 [details, diff]
implement a new RDEPEND.suspect check

I've just hard-coded the list for now. When we decide to move it somewhere else, we can do the same for the list of valid RESTRICT values.
Comment 2 Zac Medico gentoo-dev 2008-05-14 21:38:39 UTC
This is fixed in 2.1.5.
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2008-05-16 03:22:20 UTC
can i get you to change dev-util/jam to dev-util/ftjam?  i'm removing jam from the tree soon.
Comment 4 Zac Medico gentoo-dev 2008-05-16 05:55:34 UTC
(In reply to comment #3)
> can i get you to change dev-util/jam to dev-util/ftjam?  i'm removing jam from
> the tree soon.

Done, thanks.
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-29 19:04:04 UTC
Many packages use dev-python/setuptools at run-time, so I removed dev-python/setuptools from the hard-coded list in r14170.