summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2008-01-25 22:45:23 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2008-01-25 22:45:23 +0000
commit5a76d5f5c2db182edadc1ef238e70ceac8f2a856 (patch)
tree12d57200d31b7d83046fd88fd8c3d2052be285ab /eclass
parentremove redundant cd S (diff)
downloadhistorical-5a76d5f5c2db182edadc1ef238e70ceac8f2a856.tar.gz
historical-5a76d5f5c2db182edadc1ef238e70ceac8f2a856.tar.bz2
historical-5a76d5f5c2db182edadc1ef238e70ceac8f2a856.zip
Output a QA warning when the autotools functions are used outside of
unpack phase. You should run then in src_unpack().
Diffstat (limited to 'eclass')
-rw-r--r--eclass/autotools.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
index d61cf6cf545b..7a4e30f727b5 100644
--- a/eclass/autotools.eclass
+++ b/eclass/autotools.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.70 2008/01/13 18:41:28 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/autotools.eclass,v 1.71 2008/01/25 22:45:23 flameeyes Exp $
#
# Maintainer: base-system@gentoo.org
#
@@ -204,6 +204,10 @@ eautomake() {
# Internal function to run an autotools' tool
autotools_run_tool() {
+ if [[ ${EBUILD_PHASE} != "unpack" ]]; then
+ ewarn "QA Warning: running $1 in ${EBUILD_PHASE} phase"
+ fi
+
local STDERR_TARGET="${T}/$$.out"
local ris