<div dir="ltr">I've now done 1.18 and 1.20 cabal-install releases that should hopefully fix this.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 20, 2014 at 4:02 AM, Miëtek Bak <span dir="ltr"><<a href="mailto:mietek@bak.io" target="_blank">mietek@bak.io</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I’m not sure if I understand the problem.  I believe bootstrap.sh should be expected to be run only on a bare system with nothing but GHC installed.  If the user is already able to install Cabal packages, i.e. has some version cabal-install, they should be using that, not bootstrap.sh.  Does this assumption simplify the problem you’re seeing?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Miëtek<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
On 2014-12-20, at 08:11, Johan Tibell <<a href="mailto:johan.tibell@gmail.com">johan.tibell@gmail.com</a>> wrote:<br>
<br>
> I've spent a considerable amount of time [1] now and I don't think we can fix it in a way which works with both network < 2.6 and network >= 2.6/network-uri >=26. In fact I don't know if I can get bootstrap.sh working at all. Without actually using cabal-install to do the dependency/flag resolution and make sure we build using a consistent set of packages we end up in problems like these:<br>
><br>
> Distribution/Client/HttpUtils.hs:68:43:<br>
>     Couldn't match expected type ‘network-2.4.2.3:Network.URI.URI’<br>
>                 with actual type ‘URI’<br>
>     NB: ‘network-2.4.2.3:Network.URI.URI’<br>
>           is defined in ‘Network.URI’ in package ‘network-2.4.2.3’<br>
>         ‘URI’ is defined in ‘Network.URI’ in package ‘network-uri-2.6.0.1’<br>
>     In the ‘rqURI’ field of a record<br>
>     In the expression:<br>
>       Request<br>
>         {rqURI = uri, rqMethod = GET,<br>
>          rqHeaders = Header HdrUserAgent userAgent : ifNoneMatchHdr,<br>
>          rqBody = ByteString.empty}<br>
><br>
> See full log: <a href="http://lpaste.net/116892" target="_blank">http://lpaste.net/116892</a><br>
><br>
> The cause is the HTTP package and the Cabal package being compiled against different versions of network. Given how bootstrap.sh works there's no real avoiding this. We can only hope that the user only has one version of network installed.<br>
><br>
> 1. See the latest commits on the <a href="https://github.com/haskell/cabal/tree/1.18" target="_blank">https://github.com/haskell/cabal/tree/1.18</a> branch.<br>
><br>
> On Tue, Dec 16, 2014 at 8:43 AM, Johan Tibell <<a href="mailto:johan.tibell@gmail.com">johan.tibell@gmail.com</a>> wrote:<br>
> Ah, the bootstrap script needs to be updated after the Network.URI split. :/<br>
><br>
> On Tue, Dec 16, 2014 at 4:47 AM, Miëtek Bak <<a href="mailto:mietek@bak.io">mietek@bak.io</a>> wrote:<br>
> I should add — this is on a bare Ubuntu 14.04 LTS system, with only GHC 7.8.3 installed, and nothing else.<br>
><br>
> --<br>
> Miëtek<br>
><br>
><br>
><br>
><br>
> On 2014-12-16, at 03:37, Miëtek Bak <<a href="mailto:mietek@bak.io">mietek@bak.io</a>> wrote:<br>
><br>
> > Bootstrapping 1.20.0.4 fails for me:<br>
> ><br>
> >       Configuring cabal-install-1.20.0.4...<br>
> >       Setup: At least the following dependencies are missing:<br>
> >       network-uri <2.6<br>
> ><br>
> >       Error during cabal-install bootstrap:<br>
> >       Configuring the cabal-install package failed.<br>
> ><br>
> > --<br>
> > Miëtek<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > On 2014-12-15, at 23:16, Johan Tibell <<a href="mailto:johan.tibell@gmail.com">johan.tibell@gmail.com</a>> wrote:<br>
> ><br>
> >> I just pushed Cabal and cabal-install releases on both the 1.18 and 1.20 branches live.<br>
> >> _______________________________________________<br>
> >> cabal-devel mailing list<br>
> >> <a href="mailto:cabal-devel@haskell.org">cabal-devel@haskell.org</a><br>
> >> <a href="http://www.haskell.org/mailman/listinfo/cabal-devel" target="_blank">http://www.haskell.org/mailman/listinfo/cabal-devel</a><br>
> ><br>
><br>
<br>
</div></div></blockquote></div><br></div>