diff options
Diffstat (limited to 'profiles/features/prefix/rpath/profile.bashrc')
-rw-r--r-- | profiles/features/prefix/rpath/profile.bashrc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/profiles/features/prefix/rpath/profile.bashrc b/profiles/features/prefix/rpath/profile.bashrc new file mode 100644 index 000000000000..198874b470e3 --- /dev/null +++ b/profiles/features/prefix/rpath/profile.bashrc @@ -0,0 +1,23 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/profiles/features/prefix/rpath/profile.bashrc,v 1.1 2014/01/18 02:01:20 redlizard Exp $ + +# Hack to avoid every package that uses libiconv/gettext +# install a charset.alias that will collide with libiconv's one +# See bugs 169678, 195148 and 256129. +# Also the discussion on +# http://archives.gentoo.org/gentoo-dev/msg_8cb1805411f37b4eb168a3e680e531f3.xml +prefix-post_src_install() { + local f + if [[ ${PN} != "libiconv" && -n $(ls "${ED}"/usr/lib*/charset.alias 2>/dev/null) ]]; then + einfo "automatically removing charset.alias" + rm -f "${ED}"/usr/lib*/charset.alias + fi +} + +# These are because of +# http://archives.gentoo.org/gentoo-dev/msg_529a0806ed2cf841a467940a57e2d588.xml +# The profile-* ones are meant to be used in etc/portage/profile.bashrc by user +# until there is the registration mechanism. +profile-post_src_install() { prefix-post_src_install ; } + post_src_install() { prefix-post_src_install ; } |