summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-02-10 11:42:48 +0000
committerMichał Górny <mgorny@gentoo.org>2013-02-10 11:42:48 +0000
commit70ad2cd8a3b741f52c58556465b0c24fa11a1588 (patch)
tree6e90dad2fa6ea331892a9b191b659be2dd84fce1 /eclass/eutils.eclass
parentIntroduce a function to install package for running tests, solving all the is... (diff)
downloadgentoo-2-70ad2cd8a3b741f52c58556465b0c24fa11a1588.tar.gz
gentoo-2-70ad2cd8a3b741f52c58556465b0c24fa11a1588.tar.bz2
gentoo-2-70ad2cd8a3b741f52c58556465b0c24fa11a1588.zip
QA-warn if epunt_cxx does not find any checks to punt.
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r--eclass/eutils.eclass14
1 files changed, 10 insertions, 4 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 658879271335..f6620412d6e7 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
-# Copyright 1999-2012 Gentoo Foundation
+# 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.409 2012/10/23 21:09:39 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.410 2013/02/10 11:42:48 mgorny Exp $
# @ECLASS: eutils.eclass
# @MAINTAINER:
@@ -1269,10 +1269,16 @@ epunt_cxx() {
local dir=$1
[[ -z ${dir} ]] && dir=${S}
ebegin "Removing useless C++ checks"
- local f
+ local f any_found
find "${dir}" -name configure | while read f ; do
- patch --no-backup-if-mismatch -p0 "${f}" "${PORTDIR}/eclass/ELT-patches/nocxx/nocxx.patch" > /dev/null
+ patch --no-backup-if-mismatch -p0 "${f}" \
+ "${PORTDIR}/eclass/ELT-patches/nocxx/nocxx.patch" > /dev/null \
+ && any_found=1
done
+
+ if [[ -z ${any_found} ]]; then
+ eqawarn "epunt_cxx called unnecessarily (no C++ checks to punt)."
+ fi
eend 0
}