summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-03-09 17:55:39 +0000
committerMichał Górny <mgorny@gentoo.org>2013-03-09 17:55:39 +0000
commit096aec179e61003d4a8a37e7a51d20513c7d8c31 (patch)
tree8f90df7eade6d7821f9b32b99758532e2f90ad43 /eclass/eutils.eclass
parentUpdated ChangeLog to reflect my change to package.mask. (diff)
downloadgentoo-2-096aec179e61003d4a8a37e7a51d20513c7d8c31.tar.gz
gentoo-2-096aec179e61003d4a8a37e7a51d20513c7d8c31.tar.bz2
gentoo-2-096aec179e61003d4a8a37e7a51d20513c7d8c31.zip
Fix epunt_cxx not to subshell.
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r--eclass/eutils.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 587bc10b4521..04f95ed84a16 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.411 2013/02/26 14:36:40 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.412 2013/03/09 17:55:39 mgorny Exp $
# @ECLASS: eutils.eclass
# @MAINTAINER:
@@ -1270,11 +1270,11 @@ epunt_cxx() {
[[ -z ${dir} ]] && dir=${S}
ebegin "Removing useless C++ checks"
local f any_found
- find "${dir}" -name configure | while read f ; do
+ while IFS= read -r -d '' f; do
patch --no-backup-if-mismatch -p0 "${f}" \
"${PORTDIR}/eclass/ELT-patches/nocxx/nocxx.patch" > /dev/null \
&& any_found=1
- done
+ done < <(find "${dir}" -name configure -print0)
if [[ -z ${any_found} ]]; then
eqawarn "epunt_cxx called unnecessarily (no C++ checks to punt)."