Alan McKinnon <[email protected]> wrote:

> On 02/08/2014 23:15, [email protected] wrote:
> > OK, here is my problem -- I want to execute a command before and another
> > command after an ebuild.  I see how to execute a command before using
> > /etc/portage/env/category/packagename, but I can't figure out to execute
> > something after the ebuild is done.  Basically, I need to change the
> > opengl interface during the compile of webkit-gtk, otherwise I get this
> > hanging process.  
> > 
> > Thanks in advance for any suggestions.
> > 
> 
> 
> A short nasty way would be something like
> 
> emerge whatever && killall <name of hung process>
> 
> A more elegant way is to copy the ebuild to a local overlay and modify
> it. You should override an appropriate phase like src_* or pkg_*
> 
> https://devmanual.gentoo.org/eclass-reference/ebuild/index.html
> 
> 
> I don't know of any portage hook called after an ebuild is complete,
> same as there isn't one called before. /etc/portage/env isn't that, it
> just luckily coincidentally happens to be used before ebuilding starts.

OK, thanks.  I want this to work during an update world and of course
the ebuild changes on almost every update, but I guess I am stuck.

Thanks again for your quick reply.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici
         [email protected]

Reply via email to