Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 734296 - emerge fails to prevent installation of dev-haskell/pantry-0.5.1.1 although dev-haskell/stack-2.3.1 depends on <dev-haskell/pantry-0.5 with default --backtrack setting
Summary: emerge fails to prevent installation of dev-haskell/pantry-0.5.1.1 although d...
Status: RESOLVED OBSOLETE
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-28 13:19 UTC by anonymous
Modified: 2022-07-28 00:32 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 anonymous 2020-07-28 13:19:59 UTC
I had to remove ~amd64 keyword for >=dev-haskell/pantry-0.5 in order to push through.

> emerge -puDN @world
...
...

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

dev-haskell/pantry:0

  (dev-haskell/pantry-0.5.1.1:0/0.5.1.1::haskell, ebuild scheduled for merge) USE="-doc -hoogle -hscolour -profile -test" ABI_X86="(64)" pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (dev-haskell/pantry-0.4.0.1:0/0.4.0.1::haskell, ebuild scheduled for merge) USE="-doc -hoogle -hscolour -profile -test" ABI_X86="(64)" pulled in by
    <dev-haskell/pantry-0.5:=[profile?] required by (dev-haskell/stack-2.3.1:0/2.3.1::haskell, ebuild scheduled for merge) USE="-doc -hoogle -hscolour -profile -test" ABI_X86="(64)"
    ^                   ^^^ ^

Reproducible: Always
Comment 2 anonymous 2020-08-02 10:30:01 UTC
(In reply to Jack Todaro from comment #1)
> Should be fixed in
> https://github.com/gentoo-haskell/gentoo-haskell/commit/
> 04cb27bf8124a96747d81cab933573a74d8290cd

I think that's a workaround. Emerge should figure out that it shouldn't upgrade pantry because stack requires <dev-haskell/pantry-0.5.
Comment 3 Zac Medico gentoo-dev 2020-08-02 21:26:08 UTC
(In reply to crocket from comment #2)
> (In reply to Jack Todaro from comment #1)
> > Should be fixed in
> > https://github.com/gentoo-haskell/gentoo-haskell/commit/
> > 04cb27bf8124a96747d81cab933573a74d8290cd
> 
> I think that's a workaround. Emerge should figure out that it shouldn't
> upgrade pantry because stack requires <dev-haskell/pantry-0.5.

This requires backtracking. Depending on the state of you dependency graph, you may need to use a larger emerge --backtrack argument in order for backtracking to solve the problem. You can use the make.conf EMERGE_DEFAULT_OPTS variable to increase you default --backtrack setting.
Comment 4 anonymous 2022-07-28 00:32:39 UTC
A large enough number for --backtrack should be enough