Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] PYTHON_TARGET errors
Date: Fri, 17 Mar 2017 04:44:28
Message-Id: 20170317044402.GA12467@waltdnes.org
In Reply to: Re: [gentoo-user] PYTHON_TARGET errors by Ralf
1 On Fri, Mar 17, 2017 at 03:30:19AM +0100, Ralf wrote
2
3 > > Since you're using PYTHON_TARGETS="python3_4 -python3_5", the "local"
4 > > option is to add the following line to package.use to apply to gedit only.
5 > Yep, i know, and then the next package complains. So why didn't this
6 > happen before? What changed?
7
8 gedit's dependancies changed.
9
10 > Can't I just enable some default settings somewhere?
11
12 You *DO* have "some default settings somewhere". As you said to Dale
13
14 > It tells me:
15 > PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4"
16
17 > I don't want to introduce dozens of local settings for packages,
18 > especially as everything used to work before.
19
20 Sorry... you want/need several distinct packages. Most of them
21 currently need python_single_target_python2_7, but gedit currently needs
22 python_single_target_python3_4. Deal with it.
23
24 That's what package.use is for. In a binary distro, everything can
25 be synchronized to the same library dependancies. In a "rolling distro"
26 like Gentoo, not every library/package is updated simultaneously. One
27 package switches from python2_x to python3_x, and then another, and then
28 another. Compare two options...
29
30 PYTHON_SINGLE_TARGET="python3_4" in make.conf requires you to set X lines
31 "foo-bar/package python_single_target_python2_7" in package.use
32
33
34 PYTHON_SINGLE_TARGET="python2_7" in make.conf requires you to set Y lines
35 "foo-bar/package python_single_target_python3_4" in package.use
36
37
38 Currently X > Y, so stick with 2_7 as the default for now. Over time,
39 Y will increase, and X will decrease. When Y > X, switch make.conf to
40 PYTHON_SINGLE_TARGET="python3_4" and list the exceptions in package.use.
41
42 --
43 Walter Dnes <waltdnes@××××××××.org>
44 I don't run "desktop environments"; I run useful applications