Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 453254 - python-r1.eclass - PYTHON_TARGETS ignores USE="-*"
Summary: python-r1.eclass - PYTHON_TARGETS ignores USE="-*"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-20 23:10 UTC by Maxim Britov
Modified: 2013-04-09 23:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Britov 2013-01-20 23:10:22 UTC
for example:

# USE='-*' emerge -vp gnome-shell libxml2
[ebuild   R    ] dev-libs/libxml2-2.9.0-r1:2  USE="-debug -examples -icu* -ipv6 -lzma* -python* -readline* -static-libs {-test}" PYTHON_TARGETS="-python2_5 -python2_6 -python2_7*"
[ebuild   R    ] gnome-base/gnome-shell-3.6.2-r1  USE="-bluetooth -i18n -networkmanager -systemd" PYTHON_TARGETS="-python2_6 -python2_7*"

# emerge -vp gnome-shell libxml2
[ebuild   R    ] dev-libs/libxml2-2.9.0-r1:2  USE="icu lzma python readline -debug -examples -ipv6 -static-libs {-test}" PYTHON_TARGETS="python2_7 -python2_5 -python2_6"
[ebuild   R    ] gnome-base/gnome-shell-3.6.2-r1  USE="bluetooth* i18n* -networkmanager -systemd" PYTHON_TARGETS="python2_7 -python2_6"


Reproducible: Always
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-01-21 19:25:11 UTC
I don't understand you. Your first snippet shows clearly that it actually respects USE='-*'. What is the problem then?
Comment 2 Maxim Britov 2013-01-21 19:43:21 UTC
With USE="-*" PYTHON_TARGET will always empty string and it ignores PYTHON_TARGET from profile and make.conf
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-01-21 19:56:41 UTC
(In reply to comment #2)
> With USE="-*" PYTHON_TARGET will always empty string and it ignores
> PYTHON_TARGET from profile and make.conf

Yes, this is normal behavior. You shouldn't be using USE=-* in the first place.
Comment 4 Maxim Britov 2013-01-21 20:12:01 UTC
Hmm... I have it in package.use:
# fgrep gnome-shell /etc/portage/package.use 
gnome-base/gnome-shell -*

/me spent several days to find why emerge ignores profile and make.conf
I did think USE='-*' should act for visible use flags only and not for environment variables.
Sorry if I wrong. I found #179766 with something related, but it old.
And sorry for my Engrish too :)
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-01-21 21:49:43 UTC
(In reply to comment #4)
> Hmm... I have it in package.use:
> # fgrep gnome-shell /etc/portage/package.use 
> gnome-base/gnome-shell -*
> 
> /me spent several days to find why emerge ignores profile and make.conf
> I did think USE='-*' should act for visible use flags only and not for
> environment variables.
> Sorry if I wrong. I found #179766 with something related, but it old.
> And sorry for my Engrish too :)

It's not an environment variable. It is a USE_EXPAND which is just short-hand syntax for USE flags with long names. There's a short bit on them in devmanual [1], I don't know if there are better docs.

There's nothing I can do. This is how things work per the spec.

[1]:http://devmanual.gentoo.org/general-concepts/use-flags/index.html