From: Zac Medico <zmedico@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] stacking profile.bashrc?
Date: Wed, 15 Jul 2009 11:39:17 -0700 [thread overview]
Message-ID: <4A5E2255.2070401@gentoo.org> (raw)
In-Reply-To: <1247492855.10225.24.camel@sapc154.salomon.at>
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
next prev parent reply other threads:[~2009-07-15 18:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-13 13:47 [gentoo-dev] stacking profile.bashrc? Michael Haubenwallner
2009-07-15 18:39 ` Zac Medico [this message]
2009-07-16 7:17 ` Michael Haubenwallner
2009-07-16 18:54 ` Zac Medico
2009-07-20 4:52 ` [gentoo-dev] " Steven J Long
2009-07-20 17:04 ` Ciaran McCreesh
2009-07-20 19:30 ` Zac Medico
2009-07-21 5:00 ` [gentoo-dev] " Steven J Long
2009-07-21 6:26 ` Zac Medico
2009-07-22 11:36 ` [gentoo-dev] " Steven J Long
2009-07-22 21:25 ` Zac Medico
2009-08-18 0:51 ` [gentoo-dev] " Steven J Long
-- strict thread matches above, loose matches on Subject: below --
2009-07-15 7:43 [gentoo-dev] " Michael Haubenwallner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A5E2255.2070401@gentoo.org \
--to=zmedico@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox