diff options
-rwxr-xr-x | bin/ebuild.sh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 60c8f5e22..1e9f7dc3f 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -134,12 +134,13 @@ useq() { fi if [[ $EBUILD_PHASE = depend ]] ; then - # Skip this for older EAPIs since lots of ebuilds/eclasses - # have stuff in global scope that really belongs somewhere - # like pkg_setup or src_configure. - if [[ -n $EAPI ]] && ! hasq "$EAPI" 0 1 2 3 3_pre2 ; then - die "use() called during invalid phase: $EBUILD_PHASE" - fi + # TODO: Add a registration interface for eclasses to register + # any number of phase hooks, so that global scope eclass + # initialization can by migrated to phase hooks in new EAPIs. + # Example: add_phase_hook before pkg_setup $ECLASS_pre_pkg_setup + #if [[ -n $EAPI ]] && ! hasq "$EAPI" 0 1 2 3 ; then + # die "use() called during invalid phase: $EBUILD_PHASE" + #fi # Make sure we have this USE flag in IUSE elif [[ -n $PORTAGE_IUSE && -n $EBUILD_PHASE ]] ; then |