Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] Stable Python package changes USE flags with ~amd64 "Mickaël Bucas" <mbucas@×××××.com>