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. -- Alan McKinnon [email protected]

