1 |
Hi Franz |
2 |
|
3 |
Thanks for your reply. |
4 |
|
5 |
However your assumption is incorrect: these two commands are run on the |
6 |
same machine, with only the keyword on "olefile" changed. |
7 |
Thinking a bit more about it, Python 3.7 isn't stable yet, so I also have |
8 |
"=dev-lang/python-3.7* ~amd64" in package.accept_keyword. |
9 |
|
10 |
I've been able to reproduce this behavior in a chroot based on stage 3 with |
11 |
the minimum packages installed. |
12 |
I have in make.conf |
13 |
PYTHON_TARGETS="python2_7 python3_6 python3_7" |
14 |
In /var/lib/portage/world |
15 |
dev-lang/python:3.7 |
16 |
dev-python/olefile |
17 |
In /etc/portage/package.accept_keywords |
18 |
dev-python/olefile ~amd64 |
19 |
=dev-lang/python-3.7* ~amd64 |
20 |
dev-python/setuptools ~amd64 |
21 |
dev-python/certifi ~amd64 |
22 |
|
23 |
And emerge says : |
24 |
# emerge -pv1 olefile |
25 |
These are the packages that would be merged, in order: |
26 |
Calculating dependencies... done! |
27 |
[ebuild R ] dev-python/olefile-0.46::gentoo USE="-doc" |
28 |
PYTHON_TARGETS="python2_7 python3_6 python3_7 -pypy3 -python3_8" 0 KiB |
29 |
Total: 1 package (1 reinstall), Size of downloads: 0 KiB |
30 |
|
31 |
When I remove " dev-python/olefile ~amd64", Python 3.7 would be disabled : |
32 |
# emerge -pv1 olefile |
33 |
These are the packages that would be merged, in order: |
34 |
Calculating dependencies... done! |
35 |
[ebuild R ] dev-python/olefile-0.46::gentoo USE="-doc" |
36 |
PYTHON_TARGETS="python2_7 python3_6 (-pypy3) (-python3_7*) (-python3_8)" 0 |
37 |
KiB |
38 |
Total: 1 package (1 reinstall), Size of downloads: 0 KiB |
39 |
|
40 |
This is still puzzling me, but one interpretation may be : |
41 |
I you enable the unstable ~amd64 keyword on a package, the stable version |
42 |
of said package is allowed to run on the unstable version of the Python |
43 |
interpreter. |
44 |
|
45 |
This seems to be the intended behavior, as I found that at least 40 Python |
46 |
packages on each of my 2 systems are stable and have Python 3.7 enabled (I |
47 |
keyworded all of them sometime in the past...) |
48 |
|
49 |
Thanks |
50 |
Best regards |
51 |
Mickaël Bucas |
52 |
|
53 |
Le mar. 7 janv. 2020 à 08:08, Franz Fellner <alpine.art.de@×××××.com> a |
54 |
écrit : |
55 |
|
56 |
> I assume those emerge commands weren't done on one machine but come from |
57 |
> those two different machines. |
58 |
> This change in USE Flags can't come from that line in |
59 |
> package.accept_keywords. |
60 |
> This is a change in PYTHON_TARGETS in make.conf, package.use or |
61 |
> package.env. |
62 |
> Carefully go through those config files/directories, I am sure you will |
63 |
> find the offending line. |
64 |
> |
65 |
> Regards |
66 |
> Franz |
67 |
> |
68 |
> Am Fr., 3. Jan. 2020 um 11:44 Uhr schrieb Mickaël Bucas <mbucas@×××××.com |
69 |
> >: |
70 |
> |
71 |
>> Hello |
72 |
>> |
73 |
>> For some time I've been wondering why I had a difference on |
74 |
>> dev-python/olefile-0.46 between 2 machines : one was installed with |
75 |
>> python_targets_python3_7, the other wasn't. |
76 |
>> And I finally pinpointed it to package.accept_keywords containing |
77 |
>> "dev-python/olefile ~amd64" on one of the machines only |
78 |
>> |
79 |
>> At the time of writing, dev-python/olefile-0.46 is the stable version, |
80 |
>> and KEYWORDS contains "amd64" (no tilde) among others. |
81 |
>> |
82 |
>> When package.accept_keywords doesn't contain "dev-python/olefile ~amd64", |
83 |
>> I get : |
84 |
>> emerge -pv1 --verbose-conflicts olefile |
85 |
>> These are the packages that would be merged, in order: |
86 |
>> Calculating dependencies... done! |
87 |
>> [ebuild R ] dev-python/olefile-0.46::gentoo USE="-doc" |
88 |
>> PYTHON_TARGETS="python2_7 python3_6 (-pypy3) (-python3_7) (-python3_8)" 0 |
89 |
>> KiB |
90 |
>> Total: 1 package (1 reinstall), Size of downloads: 0 KiB |
91 |
>> |
92 |
>> => Python 3.7 is disabled |
93 |
>> |
94 |
>> When package.accept_keywords contains "dev-python/olefile ~amd64", I get |
95 |
>> : |
96 |
>> emerge -pv1 olefile |
97 |
>> These are the packages that would be merged, in order: |
98 |
>> Calculating dependencies... done! |
99 |
>> [ebuild R ] dev-python/olefile-0.46::gentoo USE="-doc" |
100 |
>> PYTHON_TARGETS="python2_7 python3_6 python3_7* -pypy3 -python3_8" 0 KiB |
101 |
>> Total: 1 package (1 reinstall), Size of downloads: 0 KiB |
102 |
>> |
103 |
>> => Python 3.7 is enabled |
104 |
>> |
105 |
>> It seems really really strange to me for the same version of a stable |
106 |
>> package to be "influenced" by keywording. |
107 |
>> Is it a bug or a feature ? |
108 |
>> Did I do something wrong ? |
109 |
>> |
110 |
>> Thanks |
111 |
>> Best regards |
112 |
>> Mickaël Bucas |
113 |
>> |
114 |
> |