Add EAPI 3_pre2 to conditinals so the EAPI 4 stuff is disabled.
authorZac Medico <zmedico@gentoo.org>
Fri, 11 Dec 2009 06:37:00 +0000 (06:37 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 11 Dec 2009 06:37:00 +0000 (06:37 -0000)
svn path=/main/trunk/; revision=15035

bin/ebuild-helpers/doins
bin/ebuild-helpers/newins
bin/ebuild.sh
bin/isolated-functions.sh
pym/portage/__init__.py
pym/repoman/checks.py

index c5e78d9c573f995a5f8a044a143deec0b9598a7f..7e1a9ca95a0f57665b49bf0e35b4905616678a89 100755 (executable)
@@ -26,7 +26,7 @@ if [[ ${INSDESTTREE#${D}} != "${INSDESTTREE}" ]]; then
 fi
 
 case "$EAPI" in
-       0|1|2|3)
+       0|1|2|3|3_pre2)
                PRESERVE_SYMLINKS=n
                ;;
        *)
index d66e0599acfbaae8f5c00f0d82b8551d504dd666..4b2bb2b5cc655ac5cf3bbbd528efd0bdd48471b6 100755 (executable)
@@ -15,7 +15,7 @@ fi
 
 rm -rf "${T}/${2}" || exit $?
 case "$EAPI" in
-       0|1|2|3)
+       0|1|2|3|3_pre2)
                cp "$1" "$T/$2" || exit $?
                ;;
        *)
index 029fb65868f9236e2f39c037080e1878d56dfeb7..09ec4cac5845a07cd990fb4cecc0010a29752f07 100755 (executable)
@@ -144,7 +144,7 @@ useq() {
                # 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 ; then
+               if [[ -n $EAPI ]] && ! hasq "$EAPI" 0 1 2 3 3_pre2 ; then
                        die "use() called during invalid phase: $EBUILD_PHASE"
                fi
 
@@ -501,7 +501,7 @@ econf() {
                fi
 
                # EAPI=3 adds --disable-dependency-tracking to econf
-               if ! hasq "$EAPI" 0 1 2 3 ; then
+               if ! hasq "$EAPI" 0 1 2 3 3_pre2 ; then
                        set -- --disable-dependency-tracking "$@"
                fi
 
@@ -912,7 +912,7 @@ dyn_prepare() {
 
        if [[ -d $S ]] ; then
                cd "${S}"
-       elif hasq $EAPI 0 1 2 3; then
+       elif hasq $EAPI 0 1 2 3 3_pre2 ; then
                cd "${WORKDIR}"
        elif [[ -z ${A} ]] && ! has_phase_defined_up_to prepare; then
                cd "${WORKDIR}"
@@ -943,7 +943,7 @@ dyn_configure() {
 
        if [[ -d $S ]] ; then
                cd "${S}"
-       elif hasq $EAPI 0 1 2 3; then
+       elif hasq $EAPI 0 1 2 3 3_pre2 ; then
                cd "${WORKDIR}"
        elif [[ -z ${A} ]] && ! has_phase_defined_up_to configure; then
                cd "${WORKDIR}"
@@ -976,7 +976,7 @@ dyn_compile() {
 
        if [[ -d $S ]] ; then
                cd "${S}"
-       elif hasq $EAPI 0 1 2 3; then
+       elif hasq $EAPI 0 1 2 3 3_pre2 ; then
                cd "${WORKDIR}"
        elif [[ -z ${A} ]] && ! has_phase_defined_up_to compile; then
                cd "${WORKDIR}"
@@ -1053,7 +1053,7 @@ dyn_install() {
        mkdir "${PORTAGE_BUILDDIR}/image"
        if [[ -d $S ]] ; then
                cd "${S}"
-       elif hasq $EAPI 0 1 2 3; then
+       elif hasq $EAPI 0 1 2 3 3_pre2 ; then
                cd "${WORKDIR}"
        elif [[ -z ${A} ]] && ! has_phase_defined_up_to install; then
                cd "${WORKDIR}"
@@ -1407,7 +1407,7 @@ _ebuild_arg_to_phase() {
 
        case "$arg" in
                pretend)
-                       ! hasq $eapi 0 1 2 3 && \
+                       ! hasq $eapi 0 1 2 3 3_pre2 && \
                                phase_func=pkg_pretend
                        ;;
                setup)
@@ -1503,7 +1503,7 @@ _ebuild_phase_funcs() {
                        declare -F src_compile >/dev/null || \
                                src_compile() { _eapi2_src_compile "$@" ; }
 
-                       has $eapi 2 3 || declare -F src_install >/dev/null || \
+                       has $eapi 2 3 3_pre2 || declare -F src_install >/dev/null || \
                                src_install() { _eapi4_src_install "$@" ; }
 
                        if hasq $phase_func $default_phases ; then
@@ -1870,7 +1870,7 @@ if ! hasq "$EBUILD_PHASE" clean cleanrm ; then
 
                [[ -n $EAPI ]] || EAPI=0
 
-               if has "$EAPI" 0 1 2 3 ; then
+               if has "$EAPI" 0 1 2 3 3_pre2 ; then
                        export RDEPEND=${RDEPEND-${DEPEND}}
                        debug-print "RDEPEND: not set... Setting to: ${DEPEND}"
                fi
@@ -1890,7 +1890,7 @@ if ! hasq "$EBUILD_PHASE" clean cleanrm ; then
                                        pkg_nofetch pkg_postinst pkg_postrm pkg_preinst pkg_prerm
                                        pkg_setup src_test src_unpack"
                                ;;
-                       2|3)
+                       2|3|3_pre2)
                                _valid_phases="src_compile pkg_config src_configure pkg_info
                                        src_install pkg_nofetch pkg_postinst pkg_postrm pkg_preinst
                                        src_prepare pkg_prerm pkg_setup src_test src_unpack"
index 911f65bc2d36814d9fe9799d71e027feec5b0f14..61120705f90a916ce09358249201df2908ff875d 100755 (executable)
@@ -54,7 +54,7 @@ dump_trace() {
 }
 
 nonfatal() {
-       if has "${EAPI:-0}" 0 1 2 3; then
+       if has "${EAPI:-0}" 0 1 2 3 3_pre2 ; then
                die "$FUNCNAME() not supported in this EAPI"
        fi
        if [[ $# -lt 1 ]]; then
index a0d75e730d17d20f17c66a793b6c1d397f7f6464..9659111393aa8322a9e512c87129970ab04d5654 100644 (file)
@@ -3777,7 +3777,7 @@ class config(object):
                mydict["USE"] = self.get("PORTAGE_USE", "")
 
                # Don't export AA to the ebuild environment in EAPIs that forbid it
-               if eapi not in ("0", "1", "2", "3"):
+               if eapi not in ("0", "1", "2", "3", "3_pre2"):
                        mydict.pop("AA", None)
 
                # Prefix variables are supported starting with EAPI 3.
@@ -5649,7 +5649,7 @@ def spawnebuild(mydo, actionmap, mysettings, debug, alwaysdep=0,
        if mydo == "prepare" and eapi in ("0", "1"):
                return os.EX_OK
 
-       if mydo == "pretend" and eapi in ("0", "1", "2", "3"):
+       if mydo == "pretend" and eapi in ("0", "1", "2", "3", "3_pre2"):
                return os.EX_OK
 
        kwargs = actionmap[mydo]["args"]
@@ -6304,7 +6304,7 @@ def doebuild_environment(myebuild, mydo, myroot, mysettings, debug, use_cache, m
                mysettings["PORTAGE_BUILDDIR"], ".exit_status")
 
        #set up KV variable -- DEP SPEEDUP :: Don't waste time. Keep var persistent.
-       if eapi not in ('0', '1', '2', '3'):
+       if eapi not in ('0', '1', '2', '3', '3_pre2'):
                # Discard KV for EAPIs that don't support it. Cache KV is restored
                # from the backupenv whenever config.reset() is called.
                mysettings.pop('KV', None)
index ce72e36eaca529c7c2782af40c2e88417a817904..3156894f6feb18995c0f35271f7457df38082f57 100644 (file)
@@ -436,7 +436,7 @@ class Eapi4IncompatibleFuncs(LineCheck):
                self.eapi = pkg.metadata['EAPI']
 
        def check_eapi(self, eapi):
-               return self.eapi not in ('0', '1', '2', '3')
+               return self.eapi not in ('0', '1', '2', '3', '3_pre2')
 
        def check(self, num, line):
                m = self.banned_commands_re.match(line)
@@ -453,7 +453,7 @@ class Eapi4GoneVars(LineCheck):
                self.eapi = pkg.metadata['EAPI']
 
        def check_eapi(self, eapi):
-               return self.eapi not in ('0', '1', '2', '3')
+               return self.eapi not in ('0', '1', '2', '3', '3_pre2')
 
        def check(self, num, line):
                m = self.undefined_vars_re.match(line)