Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: PYTHON_SINGLE_TARGET & libreoffice
Date: Sat, 27 Feb 2016 20:39:35
Message-Id: 56D20909.30705@gmail.com
In Reply to: [gentoo-user] Re: PYTHON_SINGLE_TARGET & libreoffice by "»Q«"
1 On 27/02/2016 22:27, »Q« wrote:
2 > On Sat, 27 Feb 2016 21:40:06 +0200
3 > Alan McKinnon <alan.mckinnon@×××××.com> wrote:
4 >
5 >> I don't know much about PYTHON_SINGLE_TARGET and PYTHON_TARGET, it all
6 >> seemed to just work so I never looked further. Until now. Of all
7 >> packages, libreoffice seems to want only python3:
8 >>
9 >> I can set it in make.conf but as expected that causes all manner of
10 >> other packages to fail emerge checks as they need python2.7.
11 >>
12 >> What's the preferred way to deal with this situation?
13 >> Some relevant info:
14 >>
15 >> !!! The ebuild selected to satisfy "app-office/libreoffice" has unmet
16 >> requirements.
17 >> - app-office/libreoffice-5.1.0.3::gentoo USE="bluetooth branding cups
18 >> dbus gstreamer java kde mysql vlc (-aqua) -coinmp -collada -debug -eds
19 >> (-firebird) -gltf -gnome -gtk -gtk3 -jemalloc -libressl -odk -postgres
20 >> (-telepathy) -test" ABI_X86="64" LIBREOFFICE_EXTENSIONS="-nlpsolver
21 >> -scripting-beanshell -scripting-javascript -wiki-publisher"
22 >> PYTHON_SINGLE_TARGET="-python3_4 -python3_5" PYTHON_TARGETS="python3_4
23 >> python3_5"
24 >>
25 >> The following REQUIRED_USE flag constraints are unsatisfied:
26 >> exactly-one-of ( python_single_target_python3_4
27 >> python_single_target_python3_5 )
28 >
29 >> khamul ~ # eselect python list
30 >> Available Python interpreters:
31 >> [1] python2.7
32 >> [2] python3.4
33 >> [3] python3.5 *
34 >
35 > I think you can just put
36 >
37 > app-office/libreoffice python_single_target_python3_5
38 >
39 > into package.use, which is easier than messing with package.env.
40
41 Yup, that's the way it seems.
42 Also it looks like it'll be the way for at least the next 10 years -
43 that's my minimum guess how long I reckon python-2 will be around
44
45
46 --
47 Alan McKinnon
48 alan.mckinnon@×××××.com