aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Bo ├śrsted Andresen <zlin@exherbo.org> 2008-09-29 21:26:39 +0200
committerAvatar Bo ├śrsted Andresen <zlin@exherbo.org> 2008-09-29 21:26:39 +0200
commit13343e71d974911400f084d4c73d81076fc046b0 (patch)
tree60c5088893a31f8dcd71ce2b3211db240ab3fa2f
parent10da0e608f7d826ab12d23dbd4fd4ff155e8c399 (diff)
downloadpaludis-13343e71d974911400f084d4c73d81076fc046b0.tar.gz
paludis-13343e71d974911400f084d4c73d81076fc046b0.tar.xz
Print qa notice when econf is run outside src_configure/src_compile depending upon the existence of src_configure in the current EAPI.
-rw-r--r--paludis/repositories/e/ebuild/0/build_functions.bash6
1 files changed, 6 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild/0/build_functions.bash b/paludis/repositories/e/ebuild/0/build_functions.bash
index 03ca2cd..c1c3577 100644
--- a/paludis/repositories/e/ebuild/0/build_functions.bash
+++ b/paludis/repositories/e/ebuild/0/build_functions.bash
@@ -22,6 +22,12 @@
econf()
{
+ local phase
+ has src_configure ${PALUDIS_EBUILD_FUNCTIONS} && phase=configure
+ if [[ "${EBUILD_PHASE}" != "${phase:-compile}" ]]; then
+ ebuild_notice "qa" "econf called in EBUILD_PHASE ${EBUILD_PHASE}. It should not be run outside src_${phase} for this EAPI."
+ fi
+
local LOCAL_EXTRA_ECONF="${EXTRA_ECONF}"
local LOCAL_ECONF_WRAPPER="${ECONF_WRAPPER}"