From: Michał Górny Date: Fri, 16 Sep 2011 15:20:03 +0000 (+0000) Subject: Fix handling whitespace in filenames when looking for .la files. X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=a3dfd14e827c0eb32035675ee5e9e38167122884;p=gentoo.git Fix handling whitespace in filenames when looking for .la files. --- diff --git a/eclass/autotools-utils.eclass b/eclass/autotools-utils.eclass index ad5ffea55f16..8a7714790b5c 100644 --- a/eclass/autotools-utils.eclass +++ b/eclass/autotools-utils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.11 2011/09/12 20:32:41 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/autotools-utils.eclass,v 1.12 2011/09/16 15:20:03 mgorny Exp $ # @ECLASS: autotools-utils.eclass # @MAINTAINER: @@ -146,7 +146,7 @@ remove_libtool_files() { debug-print-function ${FUNCNAME} "$@" local f - for f in $(find "${D}" -type f -name '*.la'); do + find "${D}" -type f -name '*.la' -print0 | while read -r -d '' f; do # Keep only .la files with shouldnotlink=yes - likely plugins local shouldnotlink=$(sed -ne '/^shouldnotlink=yes$/p' "${f}") if [[ "$1" == 'all' || -z ${shouldnotlink} ]]; then