Michael Haubenwallner wrote: > Hi, > > I'm facing this problem in Prefix on AIX, although it is a generic > problem IMO: > > We do have post_src_install() hook in profiles/prefix/profile.bashrc to > drop charset.alias for packages != libiconv, required for non-glibc > platforms. > > In profiles/prefix/aix/profiles.bashrc, there is another > post_src_install() hook with some aix specific hacks, required for > portage to allow for merging shared libraries there. > > The problem now is that the latter post_src_install() overrides the > former, and I get collisions on charset.alias as the former is not > executed. > > Is this a portage bug (each of them should be executed)? > Or is there some defined way to handle this I just was unable to find?
The pre/post phase hooks are not designed for this, they are only intended for users to put in /etc/portage/bashrc. For what you are trying to do, it seems like a registration interface would be more appropriate (something like register_die_hook). Maybe the usage could go something like this: register_phase_hook install post my_post_src_install > Thank you! > /haubi/ -- Thanks, Zac