Portage And Illegally Inherited Eclasses
Posted by Stuart Herbert @ 6:15 PM, Sat 21 May 05
Filed under: Gentoo
1 Comment
After changing this line in php5-sapi-r2.eclass from:
inherit eutils confutils libtool
to
inherit eutils confutils libtool flag-o-matic
Portage started spitting out a QA Notice:
QA Notice: ECLASS '$ECLASS' inherited illegally in '$CATEGORY/$PN'
which you can find in /usr/lib/portage/bin/ebuild.sh around line 1422.
There’s no valid reason why my change violates Gentoo’s QA policies. I haven’t managed to find any official documentation about this, and Ciaran’s doc doesn’t yet have much about it, so I thought I’d spend the evening digging into it in the hope that it’ll prove useful to others.
If you’re reading this on Planet Gentoo, click the link at the top of this posting to see the full article.
And if you don’t want to read it all, the solution to this problem is to run:
ebuild foo.ebuild depend
to rebuild Portage’s metacache, which makes the warning go away.
1 comment »