Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 221537

Summary: repoman should check for suspect RDEPEND
Product: Portage Development Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: RepomanAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 216231    
Attachments: implement a new RDEPEND.suspect check

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.