Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126377 - phase hooks
Summary: phase hooks
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 115839 125886 127816
  Show dependency tree
 
Reported: 2006-03-15 20:06 UTC by Josh Nichols (RETIRED)
Modified: 2006-06-18 02:36 UTC (History)
0 users

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 Josh Nichols (RETIRED) gentoo-dev 2006-03-15 20:06:31 UTC
Phase can be used to execute stuff before and / or after each phase.

Over in Java land, we have a new system (new eclasses and new version of java-config) in our overlay which is using of the phase hooks to initialize the Java environment at the beginning of each phase. This new system is needed so we can (finally) unmask Java 1.5.
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2006-04-04 13:57:28 UTC
IMHO ebuilds really shouldn't use the phase hooks. They are there to be used by /etc/portage/bashrc, i.e. the user.
Comment 2 Brian Harring (RETIRED) gentoo-dev 2006-04-04 19:48:14 UTC
@blubb, was the original intention- the exception to this was java crap because what they need is proper env saving/restoration; since that's not there, phase hooks was the only way for them to do it without modifying a boatload of ebuilds.
Comment 3 Zac Medico gentoo-dev 2006-06-18 00:56:56 UTC
This is available in portage-2.1 which is now stable.
Comment 4 Simon Stelling (RETIRED) gentoo-dev 2006-06-18 02:36:00 UTC
STABLE is only used by the ATs