[ 
https://issues.apache.org/jira/browse/THRIFT-4634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

James E. King III updated THRIFT-4634:
--------------------------------------
    Component/s: Build Process

> Haskell builds with older cabal cannot reconcile complex version requirements
> -----------------------------------------------------------------------------
>
>                 Key: THRIFT-4634
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4634
>             Project: Thrift
>          Issue Type: Bug
>          Components: Build Process, Haskell - Library
>    Affects Versions: 0.11.0
>            Reporter: James E. King III
>            Assignee: James E. King III
>            Priority: Minor
>             Fix For: 0.12.0
>
>
> The cabal version in Ubuntu Xenial is 1.22.6.0 and it has been failing on CI 
> since HTTP-4000 changed to allow "network < 2.8" - the resulting output is:
> {noformat}
> root@48ae26f5e4f3:/thrift/src/lib/hs# make
> /usr/bin/cabal update
> Downloading the latest package list from hackage.haskell.org
> Skipping download: Local and remote files match.
> /usr/bin/cabal install
> Resolving dependencies...
> cabal: Could not resolve dependencies:
> trying: thrift-1.0.0 (user goal)
> trying: network-2.8.0.0 (dependency of thrift-1.0.0)
> trying: HTTP-4000.3.12 (dependency of thrift-1.0.0)
> trying: HTTP-4000.3.12:-conduit10
> trying: HTTP-4000.3.12:-mtl1
> rejecting: HTTP-4000.3.12:+network-uri (conflict: network==2.8.0.0,
> HTTP-4000.3.12:network-uri => network>=2.6 && <2.8)
> rejecting: HTTP-4000.3.12:-network-uri (conflict: network==2.8.0.0,
> HTTP-4000.3.12:network-uri => network>=2.2.1.8 && <2.6)
> Backjump limit reached (change with --max-backjumps).
> Makefile:639: recipe for target 'all-local' failed
> make: *** [all-local] Error 1
> {noformat}
> thrift has no direct dependency on network 2.8.0.0 - why it is being selected 
> first is beyond me.  It should back off to 2.7.0.2 once it sees the 
> network-uri set of dependencies.  It looks like the cabal in Ubuntu Bionic 
> doesn't have this problem.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to