Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306561 - Ebuilds (e.g. file, libxml2) pull eselect and eselect-python dependencies even with USE="-python"
Summary: Ebuilds (e.g. file, libxml2) pull eselect and eselect-python dependencies eve...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-23 19:33 UTC by Karsten Steingaß
Modified: 2010-03-13 18:21 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 Karsten Steingaß 2010-02-23 19:33:12 UTC
Description:
Several files pull in eselect and eselect-python packages even when use flag python is not set. This is not visible on a default installation because eselect is installed anyway, if one is crosscompiling he doesn't need portage on the other system so please get rid of unnecessary portage and python dependencies.

Steps to reproduce:
USE="-*" emerge -pe file
Expected result:
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/file-5.04 
... or similar ...
Real result:
more than that ebuild only...

Proposal for fix:
In file python.eclass line 155
--DEPEND=">=app-admin/eselect-python-20091230"
++DEPEND="python? ( >=app-admin/eselect-python-20091230 )"

But that fix is only partial. E.g libxml2 still pulls in eselect, without deep knowledge of the portage system there is no obvious place to patch (like for the former problem). If the "python?" part is removed from the RDEPEND in libxml2xyz.ebuild eselect is not pulled in anymore so it has nothing to do with the new "PYTHON_DEPEND" var and I have my quick-workaround. Sadly I'm in a hurry and have no time to dig deeper into portage, I assume one of the gurus will have a fix...
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-13 18:21:26 UTC
Many ebuilds inheriting python.eclass don't have "python" USE flag. DEPEND/RDEPEND cannot specify dependencies conditional on unsupported USE flags. Additionally I'm planning that app-admin/eselect-python will be somewhen added to system set.