From a3dfd14e827c0eb32035675ee5e9e38167122884 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 16 Sep 2011 15:20:03 +0000 Subject: [PATCH] Fix handling whitespace in filenames when looking for .la files. --- eclass/autotools-utils.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.26.2