Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 485710 - depclean doesn't clean up virtuals?
Summary: depclean doesn't clean up virtuals?
Status: RESOLVED WORKSFORME
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-23 08:04 UTC by Dirkjan Ochtman (RETIRED)
Modified: 2014-08-04 18:49 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 Dirkjan Ochtman (RETIRED) gentoo-dev 2013-09-23 08:04:17 UTC
After emerge, I get this:

!!! The following installed packages are masked:
- virtual/python-json-0::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Michał Górny <mgorny@gentoo.org> (12 Sep 2013)
# All currently supported Python implementations have built-in json
# module already. This renders the virtual no longer needed. Please
# remove your dependencies on it and enjoy json out-of-the-box.
# Removal in 30 days.

It seems this means that depclean should uninstall that package. Indeed, I get:

kdp@jansky ~ $ equery d virtual/python-json
 * These packages depend on virtual/python-json:
kdp@jansky ~ $

However:

kdp@jansky ~ $ sudo emerge -p --depclean
Calculating dependencies... done!
>>> No packages selected for removal by depclean
>>> To see reverse dependencies, use --verbose
Packages installed:   204
Packages in world:    42
Packages in system:   44
Required packages:    204
Number to remove:     0
Comment 1 Zac Medico gentoo-dev 2013-09-23 14:14:20 UTC
(In reply to Dirkjan Ochtman from comment #0)
~ $ sudo emerge -p --depclean
> Calculating dependencies... done!
> >>> No packages selected for removal by depclean

You need to use --verbose to see the reverse dependencies.
Comment 2 Ben Kohler gentoo-dev 2014-08-01 19:47:06 UTC
Is this still a problem? I believe depclean does handle virtuals just fine, probably "equery d" was wrong.
Comment 3 Dirkjan Ochtman (RETIRED) gentoo-dev 2014-08-04 18:49:26 UTC
I guess not.