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

Bug 284587

Summary: dev-util/pkgcheck: check for RDEPEND=$RDEPEND cases
Product: Gentoo Hosted Projects Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: PkgCoreAssignee: PkgCore project <pkgcore>
Status: UNCONFIRMED ---    
Severity: normal CC: gengor, mgorny, sam
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/pkgcore/pkgcheck/issues/262
Whiteboard:
Package list:
Runtime testing required: ---

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2009-09-11 11:19:56 UTC
Seems like quite a few ebuilds have typos in them that nills RDEPEND by setting it to itself (instead of DEPEND). I stumbled across hostapd today that was installed broken in my router for instance.

Adding a warning for these cases is probably a good idea:

flame@yamato tree % egrep '(RDEPEND="\${RDEPEND}"|RDEPEND=\${RDEPEND}|\<DEPEND="\${DEPEND}"|\<DEPEND=\${DEPEND})' */*/*.ebuild | wc -l
41
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-09-24 23:43:21 UTC
On the other hand, I had to set RDEPEND=$RDEPEND in ruby-ng.eclass because otherwise I get RDEPEND unset (and thus defaulted to DEPEND)… fun!
Comment 2 Zac Medico gentoo-dev 2009-09-25 01:18:47 UTC
(In reply to comment #1)
> On the other hand, I had to set RDEPEND=$RDEPEND in ruby-ng.eclass because
> otherwise I get RDEPEND unset (and thus defaulted to DEPEND)… fun!

Doesn't RDEPEND="" work in that case?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-12 03:18:27 UTC
repoman support has been removed per bug 835013.

Please file a new bug (or, I suppose, reopen this one) if you feel this check is still applicable to pkgcheck and doesn't already exist.