* [gentoo-user] portage python USE flags.
@ 2011-05-19 0:30 Dale
2011-05-19 0:58 ` Alan McKinnon
2011-05-19 1:03 ` Peter Humphrey
0 siblings, 2 replies; 6+ messages in thread
From: Dale @ 2011-05-19 0:30 UTC (permalink / raw
To: Gentoo User
I have a quick question. I sync'd a bit ago and noticed something a bit
odd. Here it is:
[ebuild U *] sys-apps/portage-2.2.0_alpha34 [2.2.0_alpha33]
USE="(ipc) -build -doc -epydoc -python2 -python3 (-selinux)"
LINGUAS="-pl" 794 kB
I know portage needs python but check out the USE flags. Both python2
and python3 are disabled. Shouldn't one of those be enabled? Even
better, shouldn't portage complain a bit about this before emerging?
Thing is, I'm tempted to enable them both. 2.7 is currently being used
but won't 3.1 be used eventually? Should I enable both or just emerge as
is?
That is the unstable version so if this is a problem, I want to file a
bug before someone else runs into this and ends up with a borked system.
Thanks.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] portage python USE flags.
[not found] <gTZrr-412-3@gated-at.bofh.it>
@ 2011-05-19 0:48 ` Indi
2011-05-19 1:33 ` Dale
0 siblings, 1 reply; 6+ messages in thread
From: Indi @ 2011-05-19 0:48 UTC (permalink / raw
To: gentoo-user
On Thu, May 19, 2011 at 02:40:01AM +0200, Dale wrote:
> I have a quick question. I sync'd a bit ago and noticed something a bit
> odd. Here it is:
>
> [ebuild U *] sys-apps/portage-2.2.0_alpha34 [2.2.0_alpha33]
> USE="(ipc) -build -doc -epydoc -python2 -python3 (-selinux)"
> LINGUAS="-pl" 794 kB
>
> I know portage needs python but check out the USE flags. Both python2
> and python3 are disabled. Shouldn't one of those be enabled? Even
> better, shouldn't portage complain a bit about this before emerging?
> Thing is, I'm tempted to enable them both. 2.7 is currently being used
> but won't 3.1 be used eventually? Should I enable both or just emerge as
> is?
>
Pretty sure that if you have -python2 or whatever that only works
against building things which have an optional python bit, and has no
effect on things you have which are python-based system bits.
The USE flags affect options, they don't bar things altogether.
I have "-gtk -qt4 -qt3support" in make.conf, but it doesn't stop me
from installing gtk-based things -- just stops the building of
*optional* gtk guis.
Even so, I wouldn't do that with something as critical as python.
The real question is "why do you hate python"?
:)
--
caveat utilitor
♫ ❤ ♫ ❤ ♫ ❤ ♫
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] portage python USE flags.
2011-05-19 0:30 Dale
@ 2011-05-19 0:58 ` Alan McKinnon
2011-05-19 1:03 ` Peter Humphrey
1 sibling, 0 replies; 6+ messages in thread
From: Alan McKinnon @ 2011-05-19 0:58 UTC (permalink / raw
To: gentoo-user
Apparently, though unproven, at 02:30 on Thursday 19 May 2011, Dale did opine
thusly:
> I have a quick question. I sync'd a bit ago and noticed something a bit
> odd. Here it is:
>
> [ebuild U *] sys-apps/portage-2.2.0_alpha34 [2.2.0_alpha33]
> USE="(ipc) -build -doc -epydoc -python2 -python3 (-selinux)"
> LINGUAS="-pl" 794 kB
>
> I know portage needs python but check out the USE flags. Both python2
> and python3 are disabled. Shouldn't one of those be enabled? Even
> better, shouldn't portage complain a bit about this before emerging?
> Thing is, I'm tempted to enable them both. 2.7 is currently being used
> but won't 3.1 be used eventually? Should I enable both or just emerge as
> is?
>
> That is the unstable version so if this is a problem, I want to file a
> bug before someone else runs into this and ends up with a borked system.
The solution, as always, is in the ebuild. But first a clarification:
USE flags are NOT some scheme where support will or will not be built, or that
other packages will be magically removed somehow. They are programming
variables and are used as such. Inside the ebuild, the code looks at the flag
and does something with it. Usually it does what you expect:
python_dep="python3? ( =dev-lang/python-3* )
!python2? ( !python3? (
build? ( || ( dev-lang/python:2.7 dev-lang/python:2.6 ) )
!build? ( || ( dev-lang/python:2.7 dev-lang/python:2.6 >=dev-
lang/python-3 ) )
) )
python2? ( !python3? ( || ( dev-lang/python:2.7 dev-lang/python:2.6 )
) )"
What that basically comes down to (2nd and 3rd cases swapped for clarity) is:
python3 is set = require python-3
python2 is set and python3 is not set = require python-2.6 or python-2.7
python2 is not set python3 is not set = require python-2.6 or python-2.7
Elsewhere is the ebuild you get stuff like this:
if use python3; then
python_set_active_version 3
elif use python2; then
python_set_active_version 2
Which basically means "always set active version to python-2.x regardless of
anything else unless USE=python-3, in which case set the active version to
python-3.
So, no bug here, nothing to see, move along folks.
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] portage python USE flags.
2011-05-19 0:30 Dale
2011-05-19 0:58 ` Alan McKinnon
@ 2011-05-19 1:03 ` Peter Humphrey
1 sibling, 0 replies; 6+ messages in thread
From: Peter Humphrey @ 2011-05-19 1:03 UTC (permalink / raw
To: gentoo-user
On Thursday 19 May 2011 01:30:32 Dale wrote:
> I know portage needs python but check out the USE flags. Both python2
> and python3 are disabled.
If you check emerge --info you may find, as I do, that just python is
enabled, without reference to the version. In that case I suggest you
shouldn't tamper with it!
--
Rgds
Peter
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] portage python USE flags.
2011-05-19 0:48 ` [gentoo-user] portage python USE flags Indi
@ 2011-05-19 1:33 ` Dale
2011-05-19 2:20 ` Adam Carter
0 siblings, 1 reply; 6+ messages in thread
From: Dale @ 2011-05-19 1:33 UTC (permalink / raw
To: gentoo-user
Indi wrote:
> On Thu, May 19, 2011 at 02:40:01AM +0200, Dale wrote:
>
>> I have a quick question. I sync'd a bit ago and noticed something a bit
>> odd. Here it is:
>>
>> [ebuild U *] sys-apps/portage-2.2.0_alpha34 [2.2.0_alpha33]
>> USE="(ipc) -build -doc -epydoc -python2 -python3 (-selinux)"
>> LINGUAS="-pl" 794 kB
>>
>> I know portage needs python but check out the USE flags. Both python2
>> and python3 are disabled. Shouldn't one of those be enabled? Even
>> better, shouldn't portage complain a bit about this before emerging?
>> Thing is, I'm tempted to enable them both. 2.7 is currently being used
>> but won't 3.1 be used eventually? Should I enable both or just emerge as
>> is?
>>
>>
> Pretty sure that if you have -python2 or whatever that only works
> against building things which have an optional python bit, and has no
> effect on things you have which are python-based system bits.
> The USE flags affect options, they don't bar things altogether.
> I have "-gtk -qt4 -qt3support" in make.conf, but it doesn't stop me
> from installing gtk-based things -- just stops the building of
> *optional* gtk guis.
>
> Even so, I wouldn't do that with something as critical as python.
>
> The real question is "why do you hate python"?
> :)
>
>
I don't hate python. I didn't disable python either. This just sort of
popped up. I check USE flags and I don't recall seeing this before.
Then again, I don't question portage updates to much either.
I read other replies and it seems the ebuild is going to make sure
everything stays sane so off to finish my updates.
Thanks to all.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] portage python USE flags.
2011-05-19 1:33 ` Dale
@ 2011-05-19 2:20 ` Adam Carter
0 siblings, 0 replies; 6+ messages in thread
From: Adam Carter @ 2011-05-19 2:20 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 430 bytes --]
I don't hate python. I didn't disable python either. This just sort of
popped up. I check USE flags and I don't recall seeing this before. Then
again, I don't question portage updates to much either.
>
> I read other replies and it seems the ebuild is going to make sure
> everything stays sane so off to finish my updates.
>
To get -pythonX, that would need to be set via IUSE in the build, or USE in
your make.conf right?
[-- Attachment #2: Type: text/html, Size: 637 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-05-19 2:21 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <gTZrr-412-3@gated-at.bofh.it>
2011-05-19 0:48 ` [gentoo-user] portage python USE flags Indi
2011-05-19 1:33 ` Dale
2011-05-19 2:20 ` Adam Carter
2011-05-19 0:30 Dale
2011-05-19 0:58 ` Alan McKinnon
2011-05-19 1:03 ` Peter Humphrey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox