Problems building cabal-install?
Viktor Dukhovni
ietf-dane at dukhovni.org
Sat Nov 25 21:56:05 UTC 2023
On Sat, Nov 25, 2023 at 04:52:04PM -0500, Ben Gamari wrote:
> > The latter shows up as a dependency of "Cabal" on hackage, but not
> > in the upstream Git repo. Is there is there some sort of problem
> > with the hackage metadata for Cabal 3.0, 3.2, 3.4, ...
> >
> > It is odd for these to have "Cabal-syntax 3.10.*" as a dependency, with
> > conflicting definitions.
> >
> I believe it is expected that `Cabal-syntax` should appear in the
> dependency set of `Cabal`. I had no trouble building `cabal-install`
> from upstream `master` (4f53a2feeb17bd54b609ee7cfba3c25348aca997) with
> GHC 9.6.3.
>
> Perhaps you could describe more precisely what you are doing?
Just, for example:
$ cabal install --constraint "cabal-install ^>= 3.4" cabal-install
This fails due to a conflict between Cabal-3.4 and Cabal-syntax-3.10,
(which is not the right choice of dependency for Cabal 3.4).
The hackage dependency data looks wrong, the "cabal-syntax" flag in
"hackage-security" should not default to "on", and then an older
version of "Cabal-syntax" would be chosen.
--
Viktor.
More information about the ghc-devs
mailing list