1 |
The package you're referring to have only support of python2 interpreters |
2 |
(python2_7 (CPython) and pypy (not the pypy3)). |
3 |
|
4 |
It seems, by default (if neither of PYTHON_SINGLE_TARGET is set), portage |
5 |
tries to do the "magic" (well, in my opinion, it opposes to the Gentoo |
6 |
Philosophy, and it should throw the same error even with "defaults") and |
7 |
automatically chooses the 2_7 single target for it. |
8 |
|
9 |
But when you explicitly specify the targets in make.conf, it obeys and don't |
10 |
do that magic anymore, so condition of "exactly one of supported |
11 |
single_targets (pypy, pyhton2.7)" is not meeting anymore". |
12 |
|
13 |
That's why you getting the error. |
14 |
|
15 |
В письме от суббота, 7 июля 2018 г. 21:31:48 MSK пользователь Andreas Fink |
16 |
написал: |
17 |
> Hello, |
18 |
> I have a question considering PYTHON_SINGLE_TARGET because it seems to |
19 |
> behave inconsistently on my system and I cannot find any documentation |
20 |
> about it, that would guide me in the right direction how to fix it. |
21 |
> Running emerge --info I see the following (I'm on ~amd64): |
22 |
> ... PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" |
23 |
> ... |
24 |
> |
25 |
> This output is the default for ~amd64, neither PYTHON_SINGLE_TARGET nor |
26 |
> PYTHON_TARGETS has been set explicitly. |
27 |
> If I do an emerge -av asciidoc, I see the following output: |
28 |
> ebuild R ] app-text/asciidoc-8.6.10::gentoo USE="-examples -graphviz |
29 |
> -highlight {-test}" PYTHON_SINGLE_TARGET="python2_7 -pypy" |
30 |
> PYTHON_TARGETS="python2_7 -pypy" |
31 |
> |
32 |
> Setting PYTHON_SINGLE_TARGET and PYTHON_TARGETS in /etc/portage/make.conf |
33 |
> explicitly to: PYTHON_SINGLE_TARGET="python3_5" |
34 |
> PYTHON_TARGETS="python2_7 python3_5" |
35 |
> |
36 |
> Now emerge --info doesn't show any difference. It's still the same output. |
37 |
> Doing an emerge -av asciidoc I get now this output: |
38 |
> !!! The ebuild selected to satisfy "asciidoc" has unmet requirements. |
39 |
> - app-text/asciidoc-8.6.10::gentoo USE="-examples -graphviz -highlight |
40 |
> -test" ABI_X86="(64)" PYTHON_SINGLE_TARGET="-pypy -python2_7" |
41 |
> PYTHON_TARGETS="python2_7 -pypy" |
42 |
> |
43 |
> The following REQUIRED_USE flag constraints are unsatisfied: |
44 |
> exactly-one-of ( python_single_target_pypy |
45 |
> python_single_target_python2_7 ) |
46 |
> |
47 |
> |
48 |
> This seems for me to be really inconsistent, considering the fact that we |
49 |
> usually request users to provide an emerge --info, which wouldn't show any |
50 |
> difference. |
51 |
> Why am I able to merge in the first case the package, but in the second case |
52 |
> I get an error? I really cannot understand where the |
53 |
> python_single_target_python2_7 is set in the first case. |
54 |
> Anyone who has more insight into that case? |
55 |
> |
56 |
> Cheers |
57 |
> Andreas |