Gentoo Archives: gentoo-user

From: Ralf <ralf+gentoo@×××××××××××××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] PYTHON_TARGET errors
Date: Fri, 17 Mar 2017 02:31:56
Message-Id: 5a572910-9bc1-2977-eacd-e36ca0f5c2f5@ramses-pyramidenbau.de
In Reply to: Re: [gentoo-user] PYTHON_TARGET errors by Walter Dnes
1 On 03/17/2017 03:19 AM, Walter Dnes wrote:
2 > On Fri, Mar 17, 2017 at 02:09:29AM +0100, Ralf wrote
3 >
4 >> So somehow PYTHON_TARGET and PYTHON_SINGLETARGET got screwed on my
5 >> system. I know how I could fix this for gedit only, but then other
6 >> packages begin complaining about the same issue as well.
7 > No, it's not screwed up. gedit insists on python 3.x now in
8 > PYTHON_SINGLE_TARGET, given your USE flags. Start from the beginning.
9 > app-editors/gedit-3.22.0::gentoo USE="introspection python spell"
10 > You have (via package.use, make.conf, or profile) invoked the "python"
11 > and "introspection" USE flags for gedit. The bit...
12 Yes, I know what is wrong. But it's not only wrong for gedit, other
13 packages will fail as well, if I correct the settings for gedit.
14 >
15 >> The following REQUIRED_USE flag constraints are unsatisfied:
16 >> python? ( exactly-one-of ( python_single_target_python3_4
17 >> python_single_target_python3_5 ) )
18 > ...says that you need "exactly-one-of" the following...
19 > ( python_single_target_python3_4 python_single_target_python3_5 )
20 >
21 > Since you're using PYTHON_TARGETS="python3_4 -python3_5", the "local"
22 > option is to add the following line to package.use to apply to gedit only.
23 Yep, i know, and then the next package complains. So why didn't this
24 happen before? What changed?
25 >
26 > app-editors/gedit python_single_target_python3_4
27 >
28 > You might consider the "global" option, which is to change make.conf
29 > to read PYTHON_SINGLE_TARGET="python3_4" if that doesn't cause rebuilds
30 > all over the place.
31 I already tried that. Then other packages complain because they are not
32 compatible to the settings gedit requires.
33 >
34 > In either case, when upgrading from python 3.4 to 3.5 in the future,
35 > you'll have to change "3.4" to "3.5" in make.conf and/or package.use.
36 Can't I just enable some default settings somewhere? I don't want to
37 introduce dozens of local settings for packages, especially as
38 everything used to work before.
39
40 Ralf

Replies

Subject Author
Re: [gentoo-user] PYTHON_TARGET errors Walter Dnes <waltdnes@××××××××.org>