1 |
commit: 1f4c0a2258a530cc6bfc4ee62d5d2ed1c096396d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 20 08:31:36 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 23 21:44:12 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f4c0a22 |
7 |
|
8 |
python-any-r1.eclass: Remove obsolete PYTHON_USEDEP single-r1 hack |
9 |
|
10 |
Remove the QA hack for PYTHON_USEDEP that originally prevented python-r1 |
11 |
ebuilds from wrongly depending on python-single-r1 packages. Since |
12 |
the latter no longer define python_targets*, these dependencies are now |
13 |
caught without any hacks. |
14 |
|
15 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
16 |
|
17 |
eclass/python-any-r1.eclass | 14 +++++++------- |
18 |
1 file changed, 7 insertions(+), 7 deletions(-) |
19 |
|
20 |
diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass |
21 |
index cb343b320f0..2f38155c39f 100644 |
22 |
--- a/eclass/python-any-r1.eclass |
23 |
+++ b/eclass/python-any-r1.eclass |
24 |
@@ -144,7 +144,7 @@ EXPORT_FUNCTIONS pkg_setup |
25 |
# |
26 |
# Example value: |
27 |
# @CODE |
28 |
-# python_targets_python3_7(-),-python_single_target_python3_7(-) |
29 |
+# python_targets_python3_7(-) |
30 |
# @CODE |
31 |
|
32 |
# @ECLASS-VARIABLE: PYTHON_SINGLE_USEDEP |
33 |
@@ -239,14 +239,14 @@ if [[ ! ${_PYTHON_ANY_R1} ]]; then |
34 |
# ( |
35 |
# dev-lang/python:3.7 |
36 |
# dev-python/foo[python_single_target_python3_7(-)] |
37 |
-# || ( dev-python/bar[python_targets_python3_7(-),-python_single_target_python3_7(-)] |
38 |
-# dev-python/baz[python_targets_python3_7(-),-python_single_target_python3_7(-)] ) |
39 |
+# || ( dev-python/bar[python_targets_python3_7(-) |
40 |
+# dev-python/baz[python_targets_python3_7(-) ) |
41 |
# ) |
42 |
# ( |
43 |
# dev-lang/python:3.8 |
44 |
# dev-python/foo[python_single_target_python3_8(-)] |
45 |
-# || ( dev-python/bar[python_targets_python3_8(-),-python_single_target_python3_8(-)] |
46 |
-# dev-python/baz[python_targets_python3_8(-),-python_single_target_python3_8(-)] ) |
47 |
+# || ( dev-python/bar[python_targets_python3_8(-)] |
48 |
+# dev-python/baz[python_targets_python3_8(-)] ) |
49 |
# ) |
50 |
# ) |
51 |
# @CODE |
52 |
@@ -258,7 +258,7 @@ python_gen_any_dep() { |
53 |
|
54 |
local i PYTHON_PKG_DEP out= |
55 |
for i in "${_PYTHON_SUPPORTED_IMPLS[@]}"; do |
56 |
- local PYTHON_USEDEP="python_targets_${i}(-),-python_single_target_${i}(-)" |
57 |
+ local PYTHON_USEDEP="python_targets_${i}(-)" |
58 |
local PYTHON_SINGLE_USEDEP="python_single_target_${i}(-)" |
59 |
_python_export "${i}" PYTHON_PKG_DEP |
60 |
|
61 |
@@ -294,7 +294,7 @@ _python_EPYTHON_supported() { |
62 |
if has "${i}" "${_PYTHON_SUPPORTED_IMPLS[@]}"; then |
63 |
if python_is_installed "${i}"; then |
64 |
if declare -f python_check_deps >/dev/null; then |
65 |
- local PYTHON_USEDEP="python_targets_${i}(-),-python_single_target_${i}(-)" |
66 |
+ local PYTHON_USEDEP="python_targets_${i}(-)" |
67 |
local PYTHON_SINGLE_USEDEP="python_single_target_${i}(-)" |
68 |
python_check_deps |
69 |
return ${?} |