diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-02-10 11:42:48 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-02-10 11:42:48 +0000 |
commit | e43a2f410b2a2b77120b193294c924f8be488e44 (patch) | |
tree | 1484f13814ad41efceb1f2218699aad883e5e052 /eclass | |
parent | Introduce a function to install package for running tests, solving all the is... (diff) | |
download | historical-e43a2f410b2a2b77120b193294c924f8be488e44.tar.gz historical-e43a2f410b2a2b77120b193294c924f8be488e44.tar.bz2 historical-e43a2f410b2a2b77120b193294c924f8be488e44.zip |
QA-warn if epunt_cxx does not find any checks to punt.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ChangeLog | 5 | ||||
-rw-r--r-- | eclass/eutils.eclass | 14 |
2 files changed, 14 insertions, 5 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog index a6f32fe58b98..9f41c51a6637 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for eclass directory # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.669 2013/02/10 11:41:07 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.670 2013/02/10 11:42:48 mgorny Exp $ + + 10 Feb 2013; Michał Górny <mgorny@gentoo.org> eutils.eclass: + QA-warn if epunt_cxx does not find any checks to punt. 10 Feb 2013; Michał Górny <mgorny@gentoo.org> distutils-r1.eclass: Introduce a function to install package for running tests, solving all the 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 } |