Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 609472

Summary: sys-apps/portage: package.provided does not work for virtuals unless the version corresponds to an available ebuild
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Zac Medico gentoo-dev 2017-02-15 21:20:41 UTC
Due to the way that the _expand_new_virtuals function generates atoms referring to specific versions of virtuals, package.provided does not work for virtuals unless it refers to the specific version resolved by _expand_new_virtuals.

This atoms generated by _expand_new_virtuals are visible in the verbose --depclean output. For example:

$ emerge -pv --depclean virtual/shadow

Calculating dependencies... done!
  virtual/shadow-0 pulled in by:
    @system requires virtual/shadow
    mail-mta/nullmailer-1.13-r5 requires =virtual/shadow-0, virtual/shadow
    net-misc/openssh-7.3_p1-r7 requires =virtual/shadow-0, virtual/shadow