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.

One Comment
May 22nd, 2005 at 9:51 am
Thanks for the feedback! I’m hoping that the time was worth it, and that we’ll see some real improvements to the documentation for the QA notices (and Ciaran’s already made a start on it
Probably worth pointing out that this warning occurred on a box which doesn’t use an overlay at all. Rightly or wrongly, I have one machine set aside which uses the CVS tree as its main Portage tree.
Best regards,
Stu
Add Your Comments To This Article Using The Form Below
Your comments may not appear until they have been approved by a moderator.