Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 504828 - sys-apps/portage: --depclean --with-bdeps=n doesn't allow to remove dev-lang/python:3.3 while it's unused
Summary: sys-apps/portage: --depclean --with-bdeps=n doesn't allow to remove dev-lang/...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-16 19:45 UTC by Agostino Sarubbo
Modified: 2014-12-13 19:24 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 Agostino Sarubbo gentoo-dev 2014-03-16 19:45:10 UTC
With the removal of app-misc/media-player-info-17, the user that does not want python3, are forced to install it.

Please restore the version 17, which maintain the compatibility with python2.
Comment 1 Samuli Suominen gentoo-dev 2014-03-17 09:41:04 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
Comment 2 Agostino Sarubbo gentoo-dev 2014-04-06 10:32:39 UTC
(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
Comment 3 Samuli Suominen gentoo-dev 2014-04-06 10:58:09 UTC
(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'
Comment 4 Agostino Sarubbo gentoo-dev 2014-04-06 11:13:34 UTC
(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
Comment 5 Samuli Suominen gentoo-dev 2014-04-06 11:18:40 UTC
$ 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
Comment 6 Samuli Suominen gentoo-dev 2014-04-06 11:19:56 UTC
(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
Comment 7 Samuli Suominen gentoo-dev 2014-04-06 11:20:55 UTC
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