diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-01-25 22:45:23 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-01-25 22:45:23 +0000 |
commit | 5a76d5f5c2db182edadc1ef238e70ceac8f2a856 (patch) | |
tree | 12d57200d31b7d83046fd88fd8c3d2052be285ab /eclass | |
parent | remove redundant cd S (diff) | |
download | historical-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.eclass | 6 |
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 |