Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 341037 - python.eclass always adds eselect-python in DEPEND and RDEPEND
Summary: python.eclass always adds eselect-python in DEPEND and RDEPEND
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-14 20:18 UTC by Maksim 'max_posedon' Melnikau
Modified: 2012-03-20 20:43 UTC (History)
1 user (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 Maksim 'max_posedon' Melnikau 2010-10-14 20:18:14 UTC
python.eclass always adds eselect-python as dep/rdep to every package which have "inherit python", even if package itself comes with USE="-python"

Reproducible: Always

Steps to Reproduce:
1. USE="-python" emerge dev-libs/libxml2
2. grep eselect-python -R /var/db/pkg/dev-libs/libxml2*


Actual Results:  
(example for cross compilation, but native have same issue)
max_posedon ~ # grep eselect-python -R /usr/mipsel-gentoo-linux-gnu/var/db/pkg/dev-libs/libxml2-2.7.7 
/usr/mipsel-gentoo-linux-gnu/var/db/pkg/dev-libs/libxml2-2.7.7/RDEPEND:sys-libs/zlib sys-libs/readline >=app-admin/eselect-python-20091230
/usr/mipsel-gentoo-linux-gnu/var/db/pkg/dev-libs/libxml2-2.7.7/DEPEND:sys-libs/zlib sys-libs/readline >=app-admin/eselect-python-20091230


Expected Results:  
eselect-python shouldn't be in DEPENDS/RDEPENDS

Does all packages even need this dep:
grep -R eselect-python /var/db/pkg | wc -l
=> 180
Comment 1 Maksim 'max_posedon' Melnikau 2010-10-14 20:19:58 UTC
My usecase:
I want use cross compiled gentoo on device, which haven't enough resources to run python, and use portage-utils as replacement for installing binary packages.
Comment 2 SpanKY gentoo-dev 2012-01-23 05:42:43 UTC
it also has the property of adding python to RDEPEND even when it is only needed to compile package (such as seabios)

i'm thinking of adding a PYTHON_BUILD_ONLY variable to the eclass which packages can set to "1"
Comment 3 Arfrever Frehtes Taifersar Arahesis 2012-01-23 16:23:04 UTC
(In reply to comment #2)
> it also has the property of adding python to RDEPEND even when it is only
> needed to compile package (such as seabios)
> 
> i'm thinking of adding a PYTHON_BUILD_ONLY variable to the eclass which
> packages can set to "1"

See bug #323311. PYTHON_BDEPEND is implemented in Progress Overlay. PYTHON_BDEPEND has the same syntax as PYTHON_DEPEND.
Comment 4 SpanKY gentoo-dev 2012-01-23 23:59:56 UTC
support in overlays is useless.  it needs to be in the main tree.

*** This bug has been marked as a duplicate of bug 323311 ***
Comment 5 Arfrever Frehtes Taifersar Arahesis 2012-01-31 21:46:19 UTC
This bug is not a duplicate. This bug is about build-time and run-time dependency on app-admin/eselect-python, not about possibility of specifying of build-time dependency on Python.

python.eclass in Progress Overlay now adds some dependencies only to Python implementations. All reverse dependencies of Python implementations should depend on at least one Python implementation, so the new location of dependencies should suffice.
http://code.google.com/p/gentoo-progress/source/detail?r=1705
Comment 6 Mike Gilbert gentoo-dev 2012-03-20 20:43:36 UTC
This should be resolved now.

+  20 Mar 2012; Mike Gilbert <floppym@gentoo.org> python.eclass:
+  Define _python_implementation() earlier.
+  Update handling of dependencies.
+  Patch by Arfrever. Backported from Progress Overlay.
+  http://code.google.com/p/gentoo-progress/source/detail?r=1705
+