Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 398949 - media-video/totem-2.32.0-r2: rdepends on python even with USE=-python
Summary: media-video/totem-2.32.0-r2: rdepends on python even with USE=-python
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-15 10:50 UTC by Maxim Kammerer
Modified: 2012-01-22 01:35 UTC (History)
2 users (show)

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 Kammerer 2012-01-15 10:50:26 UTC
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.
Comment 1 Arfrever Frehtes Taifersar Arahesis 2012-01-16 12:34:15 UTC
PYTHON_USE_WITH_OPT="threads" should be set in ebuild.
Comment 2 Arfrever Frehtes Taifersar Arahesis 2012-01-16 12:34:46 UTC
I meant PYTHON_USE_WITH_OPT="python".
Comment 3 Pacho Ramos gentoo-dev 2012-01-17 11:04:26 UTC
Why PYTHON_DEPEND="python? 2" is not enough Afrever?
Comment 4 Maxim Kammerer 2012-01-17 11:15:46 UTC
/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
Comment 5 Pacho Ramos gentoo-dev 2012-01-17 12:59:07 UTC
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 ;)
Comment 6 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-01-22 01:35:30 UTC
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).