Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: reavertm@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH autotools-utils 1/9] Fix handling whitespace in filenames when looking for .la files.
Date: Tue, 13 Sep 2011 14:13:04
Message-Id: 1315923033-23397-1-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH] autotools-utils.eclass: punt unnecessary .la files even w/ USE=static-libs. by "Michał Górny"
1 ---
2 eclass/autotools-utils.eclass | 2 +-
3 1 files changed, 1 insertions(+), 1 deletions(-)
4
5 diff --git a/eclass/autotools-utils.eclass b/eclass/autotools-utils.eclass
6 index ad5ffea..8bc365d 100644
7 --- a/eclass/autotools-utils.eclass
8 +++ b/eclass/autotools-utils.eclass
9 @@ -146,7 +146,7 @@ remove_libtool_files() {
10 debug-print-function ${FUNCNAME} "$@"
11
12 local f
13 - for f in $(find "${D}" -type f -name '*.la'); do
14 + find "${D}" -type f -name '*.la' -print0 | while read -r -d '' f; do
15 # Keep only .la files with shouldnotlink=yes - likely plugins
16 local shouldnotlink=$(sed -ne '/^shouldnotlink=yes$/p' "${f}")
17 if [[ "$1" == 'all' || -z ${shouldnotlink} ]]; then
18 --
19 1.7.6.1

Replies