Gentoo Archives: gentoo-user

From: Tom Wijsman <TomWij@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to get rid of Python2 (where possible)
Date: Fri, 28 Mar 2014 19:30:02
Message-Id: 20140328202927.41fcd877@gentoo.org
In Reply to: Re: [gentoo-user] How to get rid of Python2 (where possible) by Helmut Jarausch
1 On Fri, 28 Mar 2014 11:42:59 +0100
2 Helmut Jarausch <jarausch@××××××××××××××××.de> wrote:
3
4 > sys-apps/portage:0
5 >
6 > (sys-apps/portage-9999:0/0::gentoo, ebuild scheduled for merge)
7 > pulled in by
8 > sys-apps/portage (Argument)
9 >
10 > (sys-apps/portage-9999:0/0::gentoo, installed) pulled in by
11 >
12 > sys-apps/portage[**SNIP**] required by
13 > (app-portage/gentoolkit-dev-0.2.8.3-r1:0/0::gentoo, installed)
14 >
15 > sys-apps/portage[**SNIP**] required by
16 > (app-admin/webapp-config-1.53:0/0::gentoo, installed)
17 >
18 > sys-apps/portage[**SNIP**] required by
19 > (app-portage/flaggie-0.2.1:0/0::gentoo, installed)
20
21 The thing with Python is that it wants 'packages that support Python'
22 depend on 'Python packages that have the same versions supported'.
23
24 Iotw, from the above example; let's say the reverse dependencies
25 gentoolkit-dev, webapp-config, flaggie, ... were build with 2.x and
26 with 3.x, they would want both 2.x and 3.x set on sys-apps/portage.
27
28 If you drop 2.x you can't just rebuild Portage, you'll need to rebuild
29 the reverse deps as well; such that they no longer want 2.x on Portage.
30
31 So, when changing PYTHON_TARGET in make.conf; you will want to do
32 something along the lines of `emerge -auvDN @world --backtrack=9001`,
33 this to ensure that the reverse dependencies of Portage no longer
34 depend on Portage having the previously set Python versions.
35
36 Portage will then go ahead and rebuild both Portage and its reverse
37 dependencies; that way, it doesn't create the conflict you saw.
38
39 (Backtracking 9001 so it is sufficiently high to not cause conflicts)
40
41 --
42 With kind regards,
43
44 Tom Wijsman (TomWij)
45 Gentoo Developer
46
47 E-mail address : TomWij@g.o
48 GPG Public Key : 6D34E57D
49 GPG Fingerprint : C165 AF18 AB4C 400B C3D2 ABF0 95B2 1FCD 6D34 E57D

Replies

Subject Author
Re: [gentoo-user] How to get rid of Python2 (where possible) Helmut Jarausch <jarausch@××××××××××××××××.de>
Re: [gentoo-user] How to get rid of Python2 (where possible) Helmut Jarausch <jarausch@××××××××××××××××.de>