Summary: | sys-apps/portage: --depclean --with-bdeps=n doesn't allow to remove dev-lang/python:3.3 while it's unused | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Portage team <dev-portage> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | pacho, ssuominen |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Agostino Sarubbo
2014-03-16 19:45:10 UTC
older version, older database, no hwdb support. no, i'm not going to keep around older version just so people can avoid a DEPEND you should be able to --depclean python3 after building media-player-info as ${PYTHON_DEPS} is only in DEPEND if that doesn't work as expected, feel free to reopen (In reply to Samuli Suominen from comment #1) > you should be able to --depclean python3 after building media-player-info as > ${PYTHON_DEPS} is only in DEPEND > if that doesn't work as expected, feel free to reopen It does not work. netbook ~ # emerge -cpv python:3.3 Calculating dependencies... done! dev-lang/python-3.3.3 pulled in by: app-misc/media-player-info-21-r1 requires >=dev-lang/python-3.3.2-r2:3.3 sys-apps/portage-2.2.8-r1 requires >=dev-lang/python-2.7, >=dev-lang/python-2.7[ssl] >>> No packages selected for removal by depclean Packages installed: 723 Packages in world: 79 Packages in system: 44 Required packages: 723 Number to remove: 0 (In reply to Agostino Sarubbo from comment #2) > (In reply to Samuli Suominen from comment #1) > > you should be able to --depclean python3 after building media-player-info as > > ${PYTHON_DEPS} is only in DEPEND > > if that doesn't work as expected, feel free to reopen > > It does not work. > > netbook ~ # emerge -cpv python:3.3 > > > Calculating dependencies... done! > > dev-lang/python-3.3.3 pulled in by: > app-misc/media-player-info-21-r1 requires >=dev-lang/python-3.3.2-r2:3.3 > sys-apps/portage-2.2.8-r1 requires >=dev-lang/python-2.7, > >=dev-lang/python-2.7[ssl] > > >>> No packages selected for removal by depclean > Packages installed: 723 > Packages in world: 79 > Packages in system: 44 > Required packages: 723 > Number to remove: 0 Try `emerge --depclean --with-bdeps=n python:3.3' (In reply to Samuli Suominen from comment #3) > Try `emerge --depclean --with-bdeps=n python:3.3' netbook ~ # emerge --depclean --with-bdeps=n python:3.3 -pv Calculating dependencies... done! dev-lang/python-3.3.3 pulled in by: sys-apps/portage-2.2.8-r1 requires >=dev-lang/python-2.7, >=dev-lang/python-2.7[ssl] >>> No packages selected for removal by depclean Packages installed: 723 Packages in world: 79 Packages in system: 44 Required packages: 723 Number to remove: 0 $ grep DEPEND /usr/portage/eclass/python-any-r1.eclass no results, except commented out $ grep inherit ~/gentoo-x86/eclass/python-any-r1.eclass inherit python-utils-r1 $ grep DEPEND /usr/portage/eclass/python-utils-r1.eclass no results, except commented out so, no dependency is added by the eclasses python-any-r1 or python-utils-r1 to the ebuild, and PYTHON_DEPS is only in DEPEND therefore, this is not a bug in media-player-info, and not a bug in the eclasses either so i don't know what else to do, except reassign to dev-portage@ as the portage output is a bit unclear, they can propably clarify it for you (In reply to Agostino Sarubbo from comment #4) > (In reply to Samuli Suominen from comment #3) > > Try `emerge --depclean --with-bdeps=n python:3.3' > > netbook ~ # emerge --depclean --with-bdeps=n python:3.3 -pv > > Calculating dependencies... done! > dev-lang/python-3.3.3 pulled in by: > sys-apps/portage-2.2.8-r1 requires >=dev-lang/python-2.7, > >=dev-lang/python-2.7[ssl] ^ indeed, looks to be sys-apps/portage specific maybe you should just do `emerge -C python:3.3` or even `emerge -C --nodeps python:3.3'` maybe there is some internal logic in portage's code that doesn't allow depcleaning of unused python versions |