vapier      15/05/08 11:21:02

  Modified:             toolchain.eclass
  Log:
  use find to run sed on la files so we skip sed when there are no la files 
#548782

Revision  Changes    Path
1.667                eclass/toolchain.eclass

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.667&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.667&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.666&r2=1.667

Index: toolchain.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v
retrieving revision 1.666
retrieving revision 1.667
diff -u -r1.666 -r1.667
--- toolchain.eclass    4 May 2015 05:43:08 -0000       1.666
+++ toolchain.eclass    8 May 2015 11:21:02 -0000       1.667
@@ -1,6 +1,6 @@
 # Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.666 2015/05/04 
05:43:08 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.667 2015/05/08 
11:21:02 vapier Exp $
 
 # Maintainer: Toolchain Ninjas <[email protected]>
 
@@ -1821,9 +1821,9 @@
        allarchives="\(${allarchives// /\\|}\)"
        popd >/dev/null
 
-       sed -i \
-               -e "/^libdir=/s:=.*:='${dir}':" \
-               ./${dir}/*.la || die
+       # The libdir might not have any .la files. #548782
+       find "./${dir}" -maxdepth 1 -name '*.la' \
+               -exec sed -i -e "/^libdir=/s:=.*:='${dir}':" {} + || die
        sed -i \
                -e "/^dependency_libs=/s:/[^ ]*/${allarchives}:${LIBPATH}/\1:g" 
\
                $(find ./${PREFIX}/lib* -maxdepth 3 -name '*.la') \




Reply via email to