Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Michał Górny <mgorny@g.o>
Subject: [PATCH autotools-utils 1/9] Fix handling whitespace in filenames when looking for .la files.
Date: Tue, 13 Sep 2011 16:10:25 +0200
---
 eclass/autotools-utils.eclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/eclass/autotools-utils.eclass b/eclass/autotools-utils.eclass
index ad5ffea..8bc365d 100644
--- a/eclass/autotools-utils.eclass
+++ b/eclass/autotools-utils.eclass
@@ -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
-- 
1.7.6.1



Replies:
Re: [PATCH autotools-utils 1/9] Fix handling whitespace in filenames when looking for .la files.
-- Dirkjan Ochtman
[PATCH autotools-utils 6/9] Refactor remove_libtool_files() to simplify conditions.
-- Michał Górny
[PATCH autotools-utils 9/9] Explain .la removal reasons in output.
-- Michał Górny
[PATCH autotools-utils 2/9] Strip ${D} from removal message to shorten it.
-- Michał Górny
[PATCH autotools-utils 4/9] Clean up & simplify la removal code a little.
-- Michał Górny
[PATCH autotools-utils 7/9] Drop 'empty' .la files as well (those lacking libs & flags).
-- Michał Górny
[PATCH autotools-utils 3/9] For .la removal, look for static archives rather than USE=static-libs.
-- Michał Górny
[PATCH autotools-utils 8/9] Remove static libs covered by .pc files as well.
-- Michał Górny
[PATCH autotools-utils 5/9] Check command-line args completely in remove_libtool_files().
-- Michał Górny
References:
[PATCH] autotools-utils.eclass: punt unnecessary .la files even w/ USE=static-libs.
-- Michał Górny
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: [PATCH] autotools-utils.eclass: punt unnecessary .la files even w/ USE=static-libs.
Next by thread:
[PATCH autotools-utils 5/9] Check command-line args completely in remove_libtool_files().
Previous by date:
[PATCH autotools-utils 4/9] Clean up & simplify la removal code a little.
Next by date:
[PATCH autotools-utils 2/9] Strip ${D} from removal message to shorten it.


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.