diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-10-01 17:43:37 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-10-01 17:43:37 +0000 |
commit | 3ad44074411171205a34142c9932927404f42593 (patch) | |
tree | ca6ef20feb9aa91ae6a344f609ca30e633c3eb89 | |
parent | 7cc7ecb43807fce5eee6d7e00d41c33a9f1325f8 (diff) | |
download | portage-3ad44074411171205a34142c9932927404f42593.tar.gz portage-3ad44074411171205a34142c9932927404f42593.tar.bz2 portage-3ad44074411171205a34142c9932927404f42593.zip |
Generate an eqawarn message if econf is called from src_compile and
src_configure is also defined. Thanks to Betelgeuse for the patch which
I've modified to be silent in EAPI 0 or 1 in case ebuilds want to define
src_configure in those EAPIs and call it manually from src_compile.
svn path=/main/trunk/; revision=11603
-rwxr-xr-x | bin/ebuild.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 987d1a475..041d5fa4d 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -436,6 +436,10 @@ econf() { local x local LOCAL_EXTRA_ECONF="${EXTRA_ECONF}" + ! hasq "$EAPI" 0 1 && [[ $EBUILD_PHASE = compile && \ + $(type -t src_configure) = function ]] && \ + eqawarn "econf called in src_compile instead of src_configure" + if [ -z "${ECONF_SOURCE}" ]; then ECONF_SOURCE="." fi |