Gentoo Archives: gentoo-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] stacking profile.bashrc?
Date: Wed, 15 Jul 2009 18:41:06
Message-Id: 4A5E2255.2070401@gentoo.org
In Reply to: [gentoo-dev] stacking profile.bashrc? by Michael Haubenwallner
1 Michael Haubenwallner wrote:
2 > Hi,
3 >
4 > I'm facing this problem in Prefix on AIX, although it is a generic
5 > problem IMO:
6 >
7 > We do have post_src_install() hook in profiles/prefix/profile.bashrc to
8 > drop charset.alias for packages != libiconv, required for non-glibc
9 > platforms.
10 >
11 > In profiles/prefix/aix/profiles.bashrc, there is another
12 > post_src_install() hook with some aix specific hacks, required for
13 > portage to allow for merging shared libraries there.
14 >
15 > The problem now is that the latter post_src_install() overrides the
16 > former, and I get collisions on charset.alias as the former is not
17 > executed.
18 >
19 > Is this a portage bug (each of them should be executed)?
20 > Or is there some defined way to handle this I just was unable to find?
21
22 The pre/post phase hooks are not designed for this, they are only
23 intended for users to put in /etc/portage/bashrc. For what you are
24 trying to do, it seems like a registration interface would be more
25 appropriate (something like register_die_hook). Maybe the usage
26 could go something like this:
27
28 register_phase_hook install post my_post_src_install
29
30 > Thank you!
31 > /haubi/
32
33
34 --
35 Thanks,
36 Zac

Replies

Subject Author
Re: [gentoo-dev] stacking profile.bashrc? Michael Haubenwallner <haubi@g.o>