Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 796482 - dev-lang/python: switch from PDEPEND for app-eselect/eselect-python
Summary: dev-lang/python: switch from PDEPEND for app-eselect/eselect-python
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-06-17 15:34 UTC by David Michael
Modified: 2021-06-17 18:16 UTC (History)
1 user (show)

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


Attachments
fix.patch (fix.patch,8.68 KB, patch)
2021-06-17 15:34 UTC, David Michael
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Michael 2021-06-17 15:34:21 UTC
Created attachment 716598 [details, diff]
fix.patch

Python is one of a few packages that has an eselect module in PDEPEND.  Since this type of dependency will always be installed in ROOT, it won't work if the eselect module was not installed separately in BROOT.  Can this be changed from PDEPEND to BDEPEND+RDEPEND to improve this?  (When EAPI 8 is usable for Python, it can use IDEPEND instead for the correct behavior.)

This proof-of-concept patch moves the pkg_postinst calls from the eselect module to the Python package which no longer requires has_version tests since the package itself satisfies the requirement.  It pins stable/testing Python versions to corresponding eselect modules versions so only 3.10 behavior changes.

At a glance, it looks like bootstrapping does not include USE=python or USE=test, so I don't think this will introduce a dependency loop for building stages, but maybe I missed something.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-06-17 16:18:20 UTC
I don't really like the idea of touching eselect-python at all.  That thing should really die, especially given python-exec-conf.
Comment 2 David Michael 2021-06-17 16:19:17 UTC
I would be happy with that solution as well.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-06-17 16:21:30 UTC
Actually, we've scheduled the PDEP removal for 2021-07-01 in the python-exec-conf news item.
Comment 4 David Michael 2021-06-17 16:33:07 UTC
That sounds good, I guess I forgot about that announcement.  I'll close this since it is already being handled.