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

Bug 424651

Summary: sys-apps/portage: downgrades trigger unsolved slot conflicts with EAPI 4-slot-abi
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: rose
Priority: Normal Keywords: InVCS
Version: 2.1   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 300071, 423075    

Description Zac Medico gentoo-dev 2012-07-03 21:11:38 UTC
Here's an example slot conflict triggered by a downgrade:

$ emerge -p =dev-libs/glib-2.30.2
Calculating dependencies... done!
[ebuild     UD ] dev-libs/glib-2.30.2 [2.32.3]

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-libs/glib:2

  (dev-libs/glib-2.30.2::test_repo, ebuild scheduled for merge) pulled in by
    =dev-libs/glib-2.30.2

  (dev-libs/glib-2.32.3::test_repo, installed) pulled in by
    dev-libs/glib:2/2.32= required by (dev-libs/dbus-glib-0.98::test_repo, installed)

The depgraph._slot_abi_update_probe() method only searches for upgrades, so it doesn't trigger rebuild of reverse dependencies when there's a downgrade like this. We could add a complementary _slot_abi_downgrade_probe() method that detects cases where a downgrade is desirable, like when the newer version has been masked or removed (or possibly when an atom matching a lower version is given as an argument like in the above example).
Comment 1 Zac Medico gentoo-dev 2012-07-05 03:21:17 UTC
This is fixed in git:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=02bcf332a88bbf25b9e0391b1a6d781ab4bbe0b9

Note that it only triggers rebuilds when a downgrade will occur due to a package being masked or unavailable (though the mask could be a "runtime mask" that results from backtracking).
Comment 2 Zac Medico gentoo-dev 2012-07-05 04:01:33 UTC
This is fixed in 2.1.11.5 and 2.2.0_alpha116.
Comment 3 Zac Medico gentoo-dev 2019-09-28 22:25:33 UTC
*** Bug 608386 has been marked as a duplicate of this bug. ***