Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 424651 - sys-apps/portage: downgrades trigger unsolved slot conflicts with EAPI 4-slot-abi
Summary: sys-apps/portage: downgrades trigger unsolved slot conflicts with EAPI 4-slot...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
Keywords: InVCS
: 608386 (view as bug list)
Depends on:
Blocks: 300071 423075
  Show dependency tree
Reported: 2012-07-03 21:11 UTC by Zac Medico
Modified: 2019-09-28 22:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
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.30.2::test_repo, ebuild scheduled for merge) pulled in by

  (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:;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 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. ***