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
commit2654c71a46bdfc148b649802b2edbacbd8e03e25 (patch)
treea50e6a6fb6c1c525660616245a724356a6117e1f /eclass/eutils.eclass
parentUpdated ChangeLog to reflect my change to package.mask. (diff)
downloadhistorical-2654c71a46bdfc148b649802b2edbacbd8e03e25.tar.gz
historical-2654c71a46bdfc148b649802b2edbacbd8e03e25.tar.bz2
historical-2654c71a46bdfc148b649802b2edbacbd8e03e25.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)."