Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152476 - cleaner handling of $T
Summary: cleaner handling of $T
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-23 01:09 UTC by SpanKY
Modified: 2021-04-11 20:47 UTC (History)
1 user (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 2006-10-23 01:09:07 UTC
we should export a different T to src_* and to pkg_* functions ... in fact, might be good to have a different T for only internal portage use (environment/logs/etc...) ... that way ebuilds are free to use $T without having to worry about clobbering portage files and portage is free to use $T without having to worry about clobbering ebuild files

then we would block access to the other T's when in other functions (aka, block access to internal/pkg_* T when in src_* and block access to internal/src_* T when in pkg_*)
Comment 1 SpanKY gentoo-dev 2006-10-23 01:14:44 UTC
btw, i'm not saying the variable we use internally should be named the same as what we export to ebuilds ... i imagine it'd be a huge pain to distinguish between $T when reading/working with portage code

perhaps we now have three vars (none named $T) for use internally and we just export the properly one as $T when invoking the ebuild code
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2007-06-06 00:45:57 UTC
Well, if you can cook up a patch for it ...