summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-06-01 18:03:35 +0000
committerMike Frysinger <vapier@gentoo.org>2012-06-01 18:03:35 +0000
commit63ef65890e96959182ba7cd51ec6a1cd6174c8e2 (patch)
treef13bbe27ee76747e1e789d1d5c82e254488f32c0 /sys-libs/glibc/glibc-2.14.1-r3.ebuild
parentRespect LDFLAGS (bug #418453) and fixed underlinking at test phase (bug #4184... (diff)
downloadgentoo-2-63ef65890e96959182ba7cd51ec6a1cd6174c8e2.tar.gz
gentoo-2-63ef65890e96959182ba7cd51ec6a1cd6174c8e2.tar.bz2
gentoo-2-63ef65890e96959182ba7cd51ec6a1cd6174c8e2.zip
Add backwards compat ldso symlink for arm hardfp targets #417287 by Raúl Porcel.
(Portage version: 2.2.0_alpha108/cvs/Linux x86_64)
Diffstat (limited to 'sys-libs/glibc/glibc-2.14.1-r3.ebuild')
-rw-r--r--sys-libs/glibc/glibc-2.14.1-r3.ebuild18
1 files changed, 17 insertions, 1 deletions
diff --git a/sys-libs/glibc/glibc-2.14.1-r3.ebuild b/sys-libs/glibc/glibc-2.14.1-r3.ebuild
index b5cdddfc0779..4bf7f56e583a 100644
--- a/sys-libs/glibc/glibc-2.14.1-r3.ebuild
+++ b/sys-libs/glibc/glibc-2.14.1-r3.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.14.1-r3.ebuild,v 1.17 2012/06/01 17:49:17 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.14.1-r3.ebuild,v 1.18 2012/06/01 18:03:35 vapier Exp $
inherit eutils versionator libtool toolchain-funcs flag-o-matic gnuconfig multilib
@@ -233,6 +233,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}