summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-06-28 02:37:48 +0000
committerMike Frysinger <vapier@gentoo.org>2013-06-28 02:37:48 +0000
commit575f3463174fbfc49835483c10f15453bd22c0cc (patch)
tree51bb3ed07f569439099aee5aeb81b4e01b5ad722 /eclass
parentVersion bump. (diff)
downloadgentoo-2-575f3463174fbfc49835483c10f15453bd22c0cc.tar.gz
gentoo-2-575f3463174fbfc49835483c10f15453bd22c0cc.tar.bz2
gentoo-2-575f3463174fbfc49835483c10f15453bd22c0cc.zip
do not fail the linker script hack when the package contains no linker scripts at all
Diffstat (limited to 'eclass')
-rw-r--r--eclass/emul-linux-x86.eclass11
1 files changed, 7 insertions, 4 deletions
diff --git a/eclass/emul-linux-x86.eclass b/eclass/emul-linux-x86.eclass
index e76d6af68cd8..bd3004c1b880 100644
--- a/eclass/emul-linux-x86.eclass
+++ b/eclass/emul-linux-x86.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/emul-linux-x86.eclass,v 1.18 2013/02/24 23:30:02 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/emul-linux-x86.eclass,v 1.19 2013/06/28 02:37:48 vapier Exp $
#
# Original Author: Mike Doty <kingtaco@gentoo.org>
@@ -66,9 +66,12 @@ emul-linux-x86_src_install() {
pushd "${D}"/usr/${x86_libdir} >/dev/null
# Fix linker script paths.
- sed -i \
- -e "s:/lib32/:/${x86_libdir}/:" \
- $(grep -ls '^GROUP.*/lib32/' *.so) || die
+ local ldscripts
+ if ldscripts=( $(grep -ls '^GROUP.*/lib32/' *.so) ) ; then
+ sed -i \
+ -e "s:/lib32/:/${x86_libdir}/:" \
+ "${ldscripts[@]}" || die
+ fi
# Rewrite symlinks (if need be).
local sym tgt