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

Bug 69714

Summary: RFE: per-package 'eclasses'
Product: Portage Development Reporter: SpanKY <vapier>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: RESOLVED UPSTREAM    
Severity: normal CC: flash3001, m.debruijne, solar, tove
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description SpanKY gentoo-dev 2004-11-01 06:13:46 UTC
when dealing with packages whose ebuilds are large (often times 200 or more lines each) and we have to keep multiple versions around (SLOT-ed packages with many SLOTs, binutils, gcc, glibc, etc...), it'd be nice to create an 'eclass' of sorts just for that one package

that way we wouldnt have to try to keep changes in sync across many versions ...  this is a puge pita, especially when the changes can be large

i was thinking of perhaps a reserved inherit keyword like 'local' ... if you have something like 'inherit local', portage would look for ${PN}.eclass in the same directory as the ebuild
Comment 1 solar (RETIRED) gentoo-dev 2004-11-01 07:07:57 UTC
Any reason we could not put a class in $FILESDIR/blah 
And then just source $FILESDIR/blah.(eclass|sh) ?
Comment 2 SpanKY gentoo-dev 2004-11-01 07:22:59 UTC
that was suggested by someone before but i'd prefer to have someone on the portage team say that method is 'OK' before i start doing it
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2004-11-01 11:48:55 UTC
Please take Bug 46223 into consideration. Right now, we "cannot" remove an eclass, just because no ebuild in cvs needs it anymore. I bet, local eclasses would be more often modified/replaced by others, than global ones, so it'll become a more visible problem.
Comment 4 SpanKY gentoo-dev 2004-11-01 19:46:46 UTC
actually, that brings up another point ... binary packages wouldnt work correctly because $FILESDIR is not availabe when using them
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2005-07-31 00:58:46 UTC
This is covered with Brian's eclass/elib GLEP (which includes per-package  
stuff too now). Using UPSTREAM, because most of the LATER ones will be 
reopened again.