Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35517 - emerge -C $PKG does not remove virtuals provided by $PKG.
Summary: emerge -C $PKG does not remove virtuals provided by $PKG.
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 56237 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-10 04:59 UTC by Bardur Arantsson
Modified: 2011-10-30 22:19 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 Bardur Arantsson 2003-12-10 04:59:58 UTC
Hello,

As subject states: When doing an

   emerge -C xemacs

the virtuals line for virtual/editor (which xemacs provides) in /var/cache/edb/virtuals, remains *unchanged*:

   [...]
   virtual/editor app-editors/xemacs app-editors/jed [...]
   [...]

This must surely be a bug...? After removing xemacs, "emerge -puD world" insists on reinstalling xemacs because e.g. fcron has a dependency on virtual/editor.

It took me quite a while to find out what was causing this: I ended up writing a small shell script which found all dependencies of all 'world' packages, putting the lists in separate files and finding the files which contained xemacs. This showed that fcron was causing portage to want to merge the xemacs package, and the rest was kind of obvious. :)

After diagnosing it was simple enough to fix: Simply removing xemacs from the virtuals file stopped portage from insisting on emerging xemacs even after I'd removed it.

In summary: When doing emerge -C $PKG (or otherwise unmerging a package) should remove the package from the virtuals it provides.

(Apologies if this is already in the bugs database, I tried searching for "portage virtual" and could not find anything pertaining to this problem in the results.)

Cheers,
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-12-10 05:23:14 UTC
Already fixed in cvs
Comment 2 Markus Nigbur (RETIRED) gentoo-dev 2003-12-10 12:44:29 UTC
see above
Comment 3 SpanKY gentoo-dev 2004-08-02 19:49:54 UTC
*** Bug 56237 has been marked as a duplicate of this bug. ***