Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69714 - RFE: per-package 'eclasses'
Summary: RFE: per-package 'eclasses'
Status: RESOLVED UPSTREAM
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-01 06:13 UTC by SpanKY
Modified: 2005-07-31 00:58 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.