cabal icon indicating copy to clipboard operation
cabal copied to clipboard

cabal-install and cabal-install-solver have unnecessarily strict base <4.17 constraint on hackage

Open sternenseemann opened this issue 3 years ago • 2 comments
trafficstars

It would be great if some with the appropriate permissions could create a hackage revision for both packages and applies the constraints as they are present in the repository now – then it'd be possible to build cabal-install from hackage with GHC 9.4.2.

sternenseemann avatar Oct 02 '22 09:10 sternenseemann

hi, thanks for the suggestion, in the meanwhile, if the problem is only about base you could install it with cabal install cabal-install --allow-newer="cabal-install:base,cabal-install-solver:base"

if that command does not succes, it means such hackage revisions will not be enough either.

jneira avatar Oct 02 '22 10:10 jneira

I am already lifting the bounds on base manually which is why I opened this issue.

sternenseemann avatar Oct 02 '22 10:10 sternenseemann

I guess I can do that. Only the base bound and only for cabal-install and cabal-install-solver?

Mikolaj avatar Oct 20 '22 14:10 Mikolaj

Yes, I think so. The two failures I encountered were:

Configuring cabal-install-solver-3.8.1.0...
CallStack (from HasCallStack):
  withMetadata, called at libraries/Cabal/Cabal/src/Distribution/Simple/Utils.hs:370:14 in Cabal-3.8.1.0:Distribution.Simple.Utils
Error: Setup: Encountered missing or private dependencies:
base >=4.10 && <4.17

and

Configuring cabal-install-3.8.1.0...
CallStack (from HasCallStack):
  withMetadata, called at libraries/Cabal/Cabal/src/Distribution/Simple/Utils.hs:370:14 in Cabal-3.8.1.0:Distribution.Simple.Utils
Error: Setup: Encountered missing or private dependencies:
base >=4.10 && <4.17

GHC 9.4.2 otherwise ships the library versions cabal-install 3.8.1.0 wants by default (process, Cabal, Cabal-syntax).

sternenseemann avatar Oct 20 '22 15:10 sternenseemann

Done, Please kindly verify and close, if it works fine.

Mikolaj avatar Oct 20 '22 17:10 Mikolaj

Took a while, but can confirm that this resolves the issue!

sternenseemann avatar Oct 30 '22 17:10 sternenseemann

Thank you. :)

Mikolaj avatar Oct 31 '22 09:10 Mikolaj

Still not on cabal-3.8 branch...

juhp avatar Jan 06 '24 08:01 juhp