media-video/totem-2.32.0-r2 was built with the following: USE="bluetooth nsplugin -debug -doc -galago -iplayer -lirc -nautilus -python (-tracker) -upnp -youtube" In the ebuild: PYTHON_DEPEND="python? 2" However, cat /var/db/pkg/media-video/totem-2.32.0-r2/RDEPEND >=dev-libs/glib-2.25.11:2 >=x11-libs/gtk+-2.21.8:2 >=gnome-base/gconf-2:2 >=dev-libs/totem-pl-parser-2.30.2 >=x11-themes/gnome-icon-theme-2.16 x11-libs/cairo >=dev-libs/libxml2-2.6:2 >=dev-libs/dbus-glib-0.82 >=media-libs/gstreamer-0.10.30:0.10 >=media-libs/gst-plugins-good-0.10:0.10 >=media-libs/gst-plugins-base-0.10.30:0.10 >=media-plugins/gst-plugins-gconf-0.10:0.10 >=media-plugins/gst-plugins-taglib-0.10:0.10 >=media-plugins/gst-plugins-gio-0.10:0.10 >=media-plugins/gst-plugins-pango-0.10:0.10 >=media-plugins/gst-plugins-x-0.10:0.10 >=media-plugins/gst-plugins-meta-0.10-r2:0.10 dev-libs/libunique:1 x11-libs/libICE x11-libs/libSM x11-libs/libX11 x11-libs/libXtst >=x11-libs/libXrandr-1.1.1 >=x11-libs/libXxf86vm-1.0.1 net-wireless/bluez media-plugins/gst-plugins-soup:0.10 >=app-admin/eselect-python-20091230 =dev-lang/python-2*[threads] A portage bug? Or bug in ebuild? Portage is sys-apps/portage-2.1.10.41.
PYTHON_USE_WITH_OPT="threads" should be set in ebuild.
I meant PYTHON_USE_WITH_OPT="python".
Why PYTHON_DEPEND="python? 2" is not enough Afrever?
/usr/portage/eclass/python.eclass: # @ECLASS-VARIABLE: PYTHON_USE_WITH_OPT # @DESCRIPTION: # Set this to a name of a USE flag if you need to make either PYTHON_USE_WITH or # PYTHON_USE_WITH_OR atoms conditional under a USE flag. So I understand that it needs to be PYTHON_DEPEND="python? 2" PYTHON_USE_WITH="threads" PYTHON_USE_WITH_OPT="python" <-- to make PYTHON_USE_WITH conditional on +python
I was asking it to Afrever to try to know why python.eclass is needing to declare python is only needed with "python" USE flag two times in the ebuild ;)
Fixed the totem-2.32.0-r2 ebuild. Proposal to modify python.eclass to not require PYTHON_USE_WITH_OPT when it's redundant filed as new bug #399669. > 22 Jan 2012; Alexandre Rostovtsev <tetromino@gentoo.org> > totem-2.32.0-r2.ebuild: > Add PYTHON_USE_WITH_OPT to not pull in python when USE=-python (bug #398949, > thanks to Maxim Kammerer and Arfrever).