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
commit73134ac92c9f88f46531742b051ce930e28e9fc6 (patch)
treea38cf34268429ac7d697bb996b5a5be8ebd0347c /eclass
parentremove redundant cd S (diff)
downloadgentoo-2-73134ac92c9f88f46531742b051ce930e28e9fc6.tar.gz
gentoo-2-73134ac92c9f88f46531742b051ce930e28e9fc6.tar.bz2
gentoo-2-73134ac92c9f88f46531742b051ce930e28e9fc6.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