* Re: [gentoo-user] PYTHON_SINGLE_TARGET & libreoffice
2016-02-27 19:40 [gentoo-user] PYTHON_SINGLE_TARGET & libreoffice Alan McKinnon
@ 2016-02-27 19:59 ` Alec Ten Harmsel
2016-02-27 20:04 ` Alan McKinnon
2016-02-27 20:16 ` Nikos Chantziaras
` (3 subsequent siblings)
4 siblings, 1 reply; 11+ messages in thread
From: Alec Ten Harmsel @ 2016-02-27 19:59 UTC (permalink / raw
To: gentoo-user
On Sat, Feb 27, 2016 at 09:40:06PM +0200, Alan McKinnon wrote:
> I don't know much about PYTHON_SINGLE_TARGET and PYTHON_TARGET, it all
> seemed to just work so I never looked further. Until now. Of all
> packages, libreoffice seems to want only python3:
I don't know much about them either.
> !!! The ebuild selected to satisfy "app-office/libreoffice" has unmet
> requirements.
> - app-office/libreoffice-5.1.0.3::gentoo USE="bluetooth branding cups
> dbus gstreamer java kde mysql vlc (-aqua) -coinmp -collada -debug -eds
> (-firebird) -gltf -gnome -gtk -gtk3 -jemalloc -libressl -odk -postgres
> (-telepathy) -test" ABI_X86="64" LIBREOFFICE_EXTENSIONS="-nlpsolver
> -scripting-beanshell -scripting-javascript -wiki-publisher"
> PYTHON_SINGLE_TARGET="-python3_4 -python3_5" PYTHON_TARGETS="python3_4
> python3_5"
>
> The following REQUIRED_USE flag constraints are unsatisfied:
> exactly-one-of ( python_single_target_python3_4
> python_single_target_python3_5 )
>
> <snip>
>
> khamul ~ # emerge --info | grep PYTHON
> PYTHON_SINGLE_TARGET="python2_7"
> PYTHON_TARGETS="python2_7 python3_4"
> Unset: USE_PYTHON
>
app-office/libreoffice-5.1.0.3 requires PYTHON_SINGLE_TARGET to be
python3_4 or python3_5. That's the only problem. I would recommend
running stable libreoffice; I would be surprised if emerge would be
happy after you set PYTHON_SINGLE_TARGET="python3_4".
Alec
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] PYTHON_SINGLE_TARGET & libreoffice
2016-02-27 19:59 ` Alec Ten Harmsel
@ 2016-02-27 20:04 ` Alan McKinnon
2016-02-27 20:22 ` [gentoo-user] " Nikos Chantziaras
0 siblings, 1 reply; 11+ messages in thread
From: Alan McKinnon @ 2016-02-27 20:04 UTC (permalink / raw
To: gentoo-user
On 27/02/2016 21:59, Alec Ten Harmsel wrote:
> On Sat, Feb 27, 2016 at 09:40:06PM +0200, Alan McKinnon wrote:
>> I don't know much about PYTHON_SINGLE_TARGET and PYTHON_TARGET, it all
>> seemed to just work so I never looked further. Until now. Of all
>> packages, libreoffice seems to want only python3:
>
> I don't know much about them either.
>
>> !!! The ebuild selected to satisfy "app-office/libreoffice" has unmet
>> requirements.
>> - app-office/libreoffice-5.1.0.3::gentoo USE="bluetooth branding cups
>> dbus gstreamer java kde mysql vlc (-aqua) -coinmp -collada -debug -eds
>> (-firebird) -gltf -gnome -gtk -gtk3 -jemalloc -libressl -odk -postgres
>> (-telepathy) -test" ABI_X86="64" LIBREOFFICE_EXTENSIONS="-nlpsolver
>> -scripting-beanshell -scripting-javascript -wiki-publisher"
>> PYTHON_SINGLE_TARGET="-python3_4 -python3_5" PYTHON_TARGETS="python3_4
>> python3_5"
>>
>> The following REQUIRED_USE flag constraints are unsatisfied:
>> exactly-one-of ( python_single_target_python3_4
>> python_single_target_python3_5 )
>>
>> <snip>
>>
>> khamul ~ # emerge --info | grep PYTHON
>> PYTHON_SINGLE_TARGET="python2_7"
>> PYTHON_TARGETS="python2_7 python3_4"
>> Unset: USE_PYTHON
>>
>
> app-office/libreoffice-5.1.0.3 requires PYTHON_SINGLE_TARGET to be
> python3_4 or python3_5. That's the only problem. I would recommend
> running stable libreoffice; I would be surprised if emerge would be
> happy after you set PYTHON_SINGLE_TARGET="python3_4".
Correct, there are still way too many packages requiring python-2.7 that
don't support python-3 at all.
I deliberately keep this box on ~arch so I set the variables for
libreoffice in package.use and a world update is now running.
Wanting to know more about the subject, I found
https://wiki.gentoo.org/wiki/Project:Python/PYTHON_TARGETS
which more or less states that to fix issues like this, put it in
package.use
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* [gentoo-user] Re: PYTHON_SINGLE_TARGET & libreoffice
2016-02-27 20:04 ` Alan McKinnon
@ 2016-02-27 20:22 ` Nikos Chantziaras
2016-02-27 20:36 ` Alan McKinnon
0 siblings, 1 reply; 11+ messages in thread
From: Nikos Chantziaras @ 2016-02-27 20:22 UTC (permalink / raw
To: gentoo-user
On 27/02/16 22:04, Alan McKinnon wrote:
> There are still way too many packages requiring python-2.7 that
> don't support python-3 at all.
Hm. I only have one such package: app-text/asciidoc. That's out of 1227
total packages installed.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: PYTHON_SINGLE_TARGET & libreoffice
2016-02-27 20:22 ` [gentoo-user] " Nikos Chantziaras
@ 2016-02-27 20:36 ` Alan McKinnon
0 siblings, 0 replies; 11+ messages in thread
From: Alan McKinnon @ 2016-02-27 20:36 UTC (permalink / raw
To: gentoo-user
On 27/02/2016 22:22, Nikos Chantziaras wrote:
> On 27/02/16 22:04, Alan McKinnon wrote:
>> There are still way too many packages requiring python-2.7 that
>> don't support python-3 at all.
>
> Hm. I only have one such package: app-text/asciidoc. That's out of 1227
> total packages installed.
>
>
There's a few deal-breakers around you might not use
ansible & beets are the first two that come to mind.
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* [gentoo-user] Re: PYTHON_SINGLE_TARGET & libreoffice
2016-02-27 19:40 [gentoo-user] PYTHON_SINGLE_TARGET & libreoffice Alan McKinnon
2016-02-27 19:59 ` Alec Ten Harmsel
@ 2016-02-27 20:16 ` Nikos Chantziaras
2016-02-27 20:21 ` Alan McKinnon
2016-02-27 20:27 ` »Q«
` (2 subsequent siblings)
4 siblings, 1 reply; 11+ messages in thread
From: Nikos Chantziaras @ 2016-02-27 20:16 UTC (permalink / raw
To: gentoo-user
On 27/02/16 21:40, Alan McKinnon wrote:
> I don't know much about PYTHON_SINGLE_TARGET and PYTHON_TARGET, it all
> seemed to just work so I never looked further. Until now. Of all
> packages, libreoffice seems to want only python3:
>
> I can set it in make.conf but as expected that causes all manner of
> other packages to fail emerge checks as they need python2.7.
>
> What's the preferred way to deal with this situation?
PYTHON_TARGETS="python2_7 python3_4"
PYTHON_SINGLE_TARGET="python3_4"
For packages that require another PYTHON_SINGLE_TARGET version, you can
set "python_single_target_python2_7" in package.use. For example:
app-text/asciidoc python_single_target_python2_7
The reverse is also true. You can set:
PYTHON_SINGLE_TARGET="python2_7"
in make.conf, and then set "python_single_target_python3_4" in
package.use for packages that require 3.4:
app-office/libreoffice python_single_target_python3_4
I use the first method.
Yes, it's a PITA :-)
PS:
Another syntax is also available for package.use:
app-text/asciidoc <other USE flags> PYTHON_SINGLE_TARGET: python2_7
Just saw a blog post about it; I think it's undocumented and works for
all USE_EXPAND flags. The downside is that it has to appear at the end
of the line.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: PYTHON_SINGLE_TARGET & libreoffice
2016-02-27 20:16 ` Nikos Chantziaras
@ 2016-02-27 20:21 ` Alan McKinnon
0 siblings, 0 replies; 11+ messages in thread
From: Alan McKinnon @ 2016-02-27 20:21 UTC (permalink / raw
To: gentoo-user
On 27/02/2016 22:16, Nikos Chantziaras wrote:
> On 27/02/16 21:40, Alan McKinnon wrote:
>> I don't know much about PYTHON_SINGLE_TARGET and PYTHON_TARGET, it all
>> seemed to just work so I never looked further. Until now. Of all
>> packages, libreoffice seems to want only python3:
>>
>> I can set it in make.conf but as expected that causes all manner of
>> other packages to fail emerge checks as they need python2.7.
>>
>> What's the preferred way to deal with this situation?
>
> PYTHON_TARGETS="python2_7 python3_4"
> PYTHON_SINGLE_TARGET="python3_4"
>
> For packages that require another PYTHON_SINGLE_TARGET version, you can
> set "python_single_target_python2_7" in package.use. For example:
>
> app-text/asciidoc python_single_target_python2_7
>
> The reverse is also true. You can set:
>
> PYTHON_SINGLE_TARGET="python2_7"
>
> in make.conf, and then set "python_single_target_python3_4" in
> package.use for packages that require 3.4:
>
> app-office/libreoffice python_single_target_python3_4
>
> I use the first method.
>
> Yes, it's a PITA :-)
I'll say.
Just got another one - sigil. That fails at build time, not at
emerge-initial-check-stuff time. So no problem I thought, I'll tweak
that one too. Now that causes 20 packages in dev-python like eg pillow,
six, etc to want the same tweak. And boost.
I have free time, I'll experiment with those now. I just hope it doesn't
break everything else using those packages
> PS:
> Another syntax is also available for package.use:
>
> app-text/asciidoc <other USE flags> PYTHON_SINGLE_TARGET: python2_7
>
> Just saw a blog post about it; I think it's undocumented and works for
> all USE_EXPAND flags. The downside is that it has to appear at the end
> of the line.
>
>
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* [gentoo-user] Re: PYTHON_SINGLE_TARGET & libreoffice
2016-02-27 19:40 [gentoo-user] PYTHON_SINGLE_TARGET & libreoffice Alan McKinnon
2016-02-27 19:59 ` Alec Ten Harmsel
2016-02-27 20:16 ` Nikos Chantziaras
@ 2016-02-27 20:27 ` »Q«
2016-02-27 20:37 ` Alan McKinnon
2016-02-27 20:49 ` [gentoo-user] " Todd Goodman
2016-02-27 21:22 ` Neil Bothwick
4 siblings, 1 reply; 11+ messages in thread
From: »Q« @ 2016-02-27 20:27 UTC (permalink / raw
To: gentoo-user
On Sat, 27 Feb 2016 21:40:06 +0200
Alan McKinnon <alan.mckinnon@gmail.com> wrote:
> I don't know much about PYTHON_SINGLE_TARGET and PYTHON_TARGET, it all
> seemed to just work so I never looked further. Until now. Of all
> packages, libreoffice seems to want only python3:
>
> I can set it in make.conf but as expected that causes all manner of
> other packages to fail emerge checks as they need python2.7.
>
> What's the preferred way to deal with this situation?
> Some relevant info:
>
> !!! The ebuild selected to satisfy "app-office/libreoffice" has unmet
> requirements.
> - app-office/libreoffice-5.1.0.3::gentoo USE="bluetooth branding cups
> dbus gstreamer java kde mysql vlc (-aqua) -coinmp -collada -debug -eds
> (-firebird) -gltf -gnome -gtk -gtk3 -jemalloc -libressl -odk -postgres
> (-telepathy) -test" ABI_X86="64" LIBREOFFICE_EXTENSIONS="-nlpsolver
> -scripting-beanshell -scripting-javascript -wiki-publisher"
> PYTHON_SINGLE_TARGET="-python3_4 -python3_5" PYTHON_TARGETS="python3_4
> python3_5"
>
> The following REQUIRED_USE flag constraints are unsatisfied:
> exactly-one-of ( python_single_target_python3_4
> python_single_target_python3_5 )
> khamul ~ # eselect python list
> Available Python interpreters:
> [1] python2.7
> [2] python3.4
> [3] python3.5 *
I think you can just put
app-office/libreoffice python_single_target_python3_5
into package.use, which is easier than messing with package.env.
But if anything still looks funny in emerge --pretend output, wait for
advice from someone better than me!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: PYTHON_SINGLE_TARGET & libreoffice
2016-02-27 20:27 ` »Q«
@ 2016-02-27 20:37 ` Alan McKinnon
0 siblings, 0 replies; 11+ messages in thread
From: Alan McKinnon @ 2016-02-27 20:37 UTC (permalink / raw
To: gentoo-user
On 27/02/2016 22:27, »Q« wrote:
> On Sat, 27 Feb 2016 21:40:06 +0200
> Alan McKinnon <alan.mckinnon@gmail.com> wrote:
>
>> I don't know much about PYTHON_SINGLE_TARGET and PYTHON_TARGET, it all
>> seemed to just work so I never looked further. Until now. Of all
>> packages, libreoffice seems to want only python3:
>>
>> I can set it in make.conf but as expected that causes all manner of
>> other packages to fail emerge checks as they need python2.7.
>>
>> What's the preferred way to deal with this situation?
>> Some relevant info:
>>
>> !!! The ebuild selected to satisfy "app-office/libreoffice" has unmet
>> requirements.
>> - app-office/libreoffice-5.1.0.3::gentoo USE="bluetooth branding cups
>> dbus gstreamer java kde mysql vlc (-aqua) -coinmp -collada -debug -eds
>> (-firebird) -gltf -gnome -gtk -gtk3 -jemalloc -libressl -odk -postgres
>> (-telepathy) -test" ABI_X86="64" LIBREOFFICE_EXTENSIONS="-nlpsolver
>> -scripting-beanshell -scripting-javascript -wiki-publisher"
>> PYTHON_SINGLE_TARGET="-python3_4 -python3_5" PYTHON_TARGETS="python3_4
>> python3_5"
>>
>> The following REQUIRED_USE flag constraints are unsatisfied:
>> exactly-one-of ( python_single_target_python3_4
>> python_single_target_python3_5 )
>
>> khamul ~ # eselect python list
>> Available Python interpreters:
>> [1] python2.7
>> [2] python3.4
>> [3] python3.5 *
>
> I think you can just put
>
> app-office/libreoffice python_single_target_python3_5
>
> into package.use, which is easier than messing with package.env.
Yup, that's the way it seems.
Also it looks like it'll be the way for at least the next 10 years -
that's my minimum guess how long I reckon python-2 will be around
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] PYTHON_SINGLE_TARGET & libreoffice
2016-02-27 19:40 [gentoo-user] PYTHON_SINGLE_TARGET & libreoffice Alan McKinnon
` (2 preceding siblings ...)
2016-02-27 20:27 ` »Q«
@ 2016-02-27 20:49 ` Todd Goodman
2016-02-27 21:22 ` Neil Bothwick
4 siblings, 0 replies; 11+ messages in thread
From: Todd Goodman @ 2016-02-27 20:49 UTC (permalink / raw
To: gentoo-user
* Alan McKinnon <alan.mckinnon@gmail.com> [160227 14:42]:
> I don't know much about PYTHON_SINGLE_TARGET and PYTHON_TARGET, it all
> seemed to just work so I never looked further. Until now. Of all
> packages, libreoffice seems to want only python3:
I was in the same position until my last updates didn't work either.
>
> I can set it in make.conf but as expected that causes all manner of
> other packages to fail emerge checks as they need python2.7.
What I did was add the expanded USE flag for python3_4
(python_single_target_python3_4 I think, but doublecheck the output to
be sure) in package.use for libreoffice for the same reason (I had other
packages that still need python2.7.)
[..SNIP..]
Todd
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] PYTHON_SINGLE_TARGET & libreoffice
2016-02-27 19:40 [gentoo-user] PYTHON_SINGLE_TARGET & libreoffice Alan McKinnon
` (3 preceding siblings ...)
2016-02-27 20:49 ` [gentoo-user] " Todd Goodman
@ 2016-02-27 21:22 ` Neil Bothwick
4 siblings, 0 replies; 11+ messages in thread
From: Neil Bothwick @ 2016-02-27 21:22 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 759 bytes --]
On Sat, 27 Feb 2016 21:40:06 +0200, Alan McKinnon wrote:
> I don't know much about PYTHON_SINGLE_TARGET and PYTHON_TARGET, it all
> seemed to just work so I never looked further. Until now. Of all
> packages, libreoffice seems to want only python3:
>
> I can set it in make.conf but as expected that causes all manner of
> other packages to fail emerge checks as they need python2.7.
>
> What's the preferred way to deal with this situation?
I set it in package.use
=app-office/libreoffice-5.1.0.3 python_single_target_python3_4
Set for a single version for now, in case this is a glitch in the ebuild
and not needed later.
--
Neil Bothwick
the sum of all human intelligence is constant, only the number of humans
increases.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread