diff options
Diffstat (limited to 'sys-libs/glibc/glibc-2.15-r1.ebuild')
-rw-r--r-- | sys-libs/glibc/glibc-2.15-r1.ebuild | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/sys-libs/glibc/glibc-2.15-r1.ebuild b/sys-libs/glibc/glibc-2.15-r1.ebuild index 7ce646d61aba..bb97601b98e2 100644 --- a/sys-libs/glibc/glibc-2.15-r1.ebuild +++ b/sys-libs/glibc/glibc-2.15-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.15-r1.ebuild,v 1.8 2012/06/01 17:49:17 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.15-r1.ebuild,v 1.9 2012/06/01 18:03:35 vapier Exp $ inherit eutils versionator libtool toolchain-funcs flag-o-matic gnuconfig multilib unpacker @@ -220,6 +220,22 @@ eblit-src_unpack-post() { fi } +eblit-pkg_preinst-post() { + if [[ ${CTARGET} == arm* ]] ; then + # Backwards compat support for renaming hardfp ldsos #417287 + local oldso='/lib/ld-linux.so.3' + local nldso='/lib/ld-linux-armhf.so.3' + if [[ -e ${D}${nldso} ]] ; then + if scanelf -qRyi "${ROOT}$(alt_prefix)"/*bin/ | grep -s "^${oldso}" ; then + ewarn "Symlinking old ldso (${oldso}) to new ldso (${nldso})." + ewarn "Please rebuild all packages using this old ldso as compat" + ewarn "support will be dropped in the future." + ln -s "${nldso##*/}" "${D}$(alt_prefix)${oldso}" + fi + fi + fi +} + maint_pkg_create() { local base="/usr/local/src/gnu/glibc/glibc-${PV:0:1}_${PV:2:1}" cd ${base} |