Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439688 - sys-apps/portage: slot conflict triggers unnecessary rebuilds
Summary: sys-apps/portage: slot conflict triggers unnecessary rebuilds
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 300071 431026
  Show dependency tree
 
Reported: 2012-10-25 22:27 UTC by Zac Medico
Modified: 2017-06-20 03:44 UTC (History)
3 users (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 Zac Medico gentoo-dev 2012-10-25 22:27:59 UTC
<slyfox> looks like portage is too eager at rebuilding even when subslot does not change:

$ emerge -avt1 dev-haskell/network

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  rR   ~] dev-haskell/web-routes-0.27.2:0/0.27.2::gentoo-haskell  USE="doc hscolour {test} -hoogle -profile" 0 kB
[ebuild  rR   ~] dev-haskell/missingh-1.2.0.0:0/1.2.0.0::gentoo-haskell  USE="doc hscolour {test} -hoogle -profile" 0 kB
[ebuild  rR   ~] dev-haskell/authenticate-1.3.1.2:0/1.3.1.2::gentoo-haskell  USE="doc hscolour -hoogle -profile" 0 kB
[ebuild  rR   ~] app-text/pandoc-1.9.4.5:0/1.9.4.5::gentoo-haskell  USE="doc hscolour {test} -hoogle -profile" 0 kB
[ebuild  rR   ~]  dev-haskell/http-4000.2.6:0/4000.2.6::gentoo-haskell  USE="doc hscolour -hoogle -profile" 0 kB
[ebuild  rR   ~] dev-haskell/http-conduit-1.7.0:0/1.7.0::gentoo-haskell  USE="doc hscolour {test} -hoogle -profile" 0 kB
[ebuild  rR   ~]  dev-haskell/network-2.3.1.0::gentoo-haskell  USE="doc hscolour {test} -hoogle -profile" 0 kB

Total: 7 packages (7 reinstalls), Size of downloads: 0 kB

WARNING: One or more updates have been skipped due to a dependency conflict:

dev-haskell/network:0

  (dev-haskell/network-2.4.0.1::gentoo-haskell, ebuild scheduled for merge) conflicts with
    <dev-haskell/network-2.4 required by (dev-haskell/dbus-core-0.9.2.1::gentoo-haskell, installed)
  (dev-haskell/network-2.4.0.1::gentoo-haskell, ebuild scheduled for merge) conflicts with
    >=dev-haskell/network-2.2:0/0= required by (dev-vcs/darcs-2.8.2::gentoo-haskell, installed)
  (dev-haskell/network-2.4.0.1::gentoo-haskell, ebuild scheduled for merge) conflicts with
    <dev-haskell/network-2.4:0/0= required by (dev-vcs/darcs-2.8.2::gentoo-haskell, installed)

<zmedico> you can probably solve that by masking the updates that trigger the slot conflict. what happens is that it's trying to do the upgrades + rebuilds and then the slot conflict interrupts it
<zmedico> maybe portage can handle it better by going back and searching for unneeded rebuilds after it solves the conflict
Comment 1 Zac Medico gentoo-dev 2012-10-26 05:11:19 UTC
We may be able handle this case by simply discarding the rebuild backtrack parameters, and re-calculating the graph while remembering to skip the problematic updates.
Comment 3 Zac Medico gentoo-dev 2012-10-26 20:13:32 UTC
This is fixed in 2.1.11.31 and 2.2.0_alpha142.