summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-03-21 14:55:33 +0000
committerMichał Górny <mgorny@gentoo.org>2015-03-21 14:55:33 +0000
commitd633fd66e2ce7e5d1d61498f50c785381eee6f06 (patch)
tree4cb8108bd8c53c6adb5ca44eceed4ece105589b4 /eclass
parentx86 stable, see bug 504082 (diff)
downloadgentoo-2-d633fd66e2ce7e5d1d61498f50c785381eee6f06.tar.gz
gentoo-2-d633fd66e2ce7e5d1d61498f50c785381eee6f06.tar.bz2
gentoo-2-d633fd66e2ce7e5d1d61498f50c785381eee6f06.zip
Ban new EAPI < 5 packages for python-r1 & python-single-r1.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog6
-rw-r--r--eclass/python-r1.eclass21
-rw-r--r--eclass/python-single-r1.eclass28
-rw-r--r--eclass/python-utils-r1.eclass18
4 files changed, 46 insertions, 27 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index 17605b59859b..04b2226396be 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for eclass directory
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1569 2015/03/20 00:13:32 mpagano Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1570 2015/03/21 14:55:33 mgorny Exp $
+
+ 21 Mar 2015; Michał Górny <mgorny@gentoo.org> python-r1.eclass,
+ python-single-r1.eclass, python-utils-r1.eclass:
+ Ban new EAPI < 5 packages for python-r1 & python-single-r1.
20 Mar 2015; Mike Pagano <mpagano@gentoo.org> kernel-2.eclass:
Move cpu-optimation removal. See bug #542810
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass
index b40d92849200..0a509a00a4f0 100644
--- a/eclass/python-r1.eclass
+++ b/eclass/python-r1.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python-r1.eclass,v 1.89 2015/02/20 17:57:22 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python-r1.eclass,v 1.90 2015/03/21 14:55:33 mgorny Exp $
# @ECLASS: python-r1
# @MAINTAINER:
@@ -33,8 +33,22 @@ case "${EAPI:-0}" in
0|1|2|3)
die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
;;
- 4|5)
- # EAPI=4 is required for USE default deps on USE_EXPAND flags
+ 4)
+ # EAPI=4 is only allowed on legacy packages
+ if [[ ${CATEGORY}/${P} == dev-python/pyelftools-0.2[123] ]]; then
+ :
+ elif [[ ${CATEGORY}/${P} == sys-apps/file-5.22 ]]; then
+ :
+ elif [[ ${CATEGORY}/${P} == sys-apps/i2c-tools-3.1.1 ]]; then
+ :
+ elif [[ ${CATEGORY}/${P} == sys-libs/cracklib-2.9.[12] ]]; then
+ :
+ else
+ die "Unsupported EAPI=${EAPI:-4} (too old, allowed only on restricted set of packages) for ${ECLASS}"
+ fi
+ ;;
+ 5)
+ # EAPI=5 is required for sane USE_EXPAND dependencies
;;
*)
die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
@@ -652,7 +666,6 @@ _python_obtain_impls() {
_python_validate_useflags
_python_check_USE_PYTHON
- _python_check_EAPI
MULTIBUILD_VARIANTS=()
diff --git a/eclass/python-single-r1.eclass b/eclass/python-single-r1.eclass
index 964cd4a0b681..b3991f61e6fe 100644
--- a/eclass/python-single-r1.eclass
+++ b/eclass/python-single-r1.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python-single-r1.eclass,v 1.36 2015/02/20 17:57:22 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python-single-r1.eclass,v 1.37 2015/03/21 14:55:33 mgorny Exp $
# @ECLASS: python-single-r1
# @MAINTAINER:
@@ -35,8 +35,28 @@ case "${EAPI:-0}" in
0|1|2|3)
die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
;;
- 4|5)
- # EAPI=4 is required for USE default deps on USE_EXPAND flags
+ 4)
+ # EAPI=4 is only allowed on legacy packages
+ if [[ ${CATEGORY}/${P} == app-arch/threadzip-1.2 ]]; then
+ :
+ elif [[ ${CATEGORY}/${P} == media-libs/lv2-1.8.0 ]]; then
+ :
+ elif [[ ${CATEGORY}/${P} == media-libs/lv2-1.10.0 ]]; then
+ :
+ elif [[ ${CATEGORY}/${P} == sys-apps/paludis-1* ]]; then
+ :
+ elif [[ ${CATEGORY}/${P} == sys-apps/paludis-2.[02].0 ]]; then
+ :
+ elif [[ ${CATEGORY}/${P} == sys-apps/util-linux-2.2[456]* ]]; then
+ :
+ elif [[ ${CATEGORY}/${P} == sys-devel/gdb-7.[78]* ]]; then
+ :
+ else
+ die "Unsupported EAPI=${EAPI:-4} (too old, allowed only on restricted set of packages) for ${ECLASS}"
+ fi
+ ;;
+ 5)
+ # EAPI=5 is required for sane USE_EXPAND dependencies
;;
*)
die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
@@ -379,8 +399,6 @@ python_gen_cond_dep() {
python_setup() {
debug-print-function ${FUNCNAME} "${@}"
- _python_check_EAPI
-
unset EPYTHON
local impl impls=()
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index a3534a7e5ca8..beabcc62721c 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python-utils-r1.eclass,v 1.81 2015/02/21 08:07:30 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python-utils-r1.eclass,v 1.82 2015/03/21 14:55:33 mgorny Exp $
# @ECLASS: python-utils-r1
# @MAINTAINER:
@@ -1127,22 +1127,6 @@ python_export_utf8_locale() {
return 0
}
-# @FUNCTION: _python_check_EAPI
-# @INTERNAL
-# @DESCRIPTION:
-# Check whether the ebuild is not using deprecated EAPI 4. Output
-# a QA warning if it does.
-_python_check_EAPI() {
- if [[ ${EAPI} == 4 && ! ${_PYTHON_WARNED_EAPI} ]]; then
- eqawarn "This package is still using EAPI=4. This results in package"
- eqawarn "dependencies violating PMS and causing issues for package managers."
- eqawarn "For this reason, using EAPI=4 in new Python packages will be banned"
- eqawarn "on 2015-03-20 (2 years and 6 months after approving EAPI 5)."
-
- _PYTHON_WARNED_EAPI=1
- fi
-}
-
# -- python.eclass functions --
_python_check_dead_variables() {