You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "John Chee (JIRA)" <ji...@apache.org> on 2014/08/26 07:24:57 UTC

[jira] [Updated] (THRIFT-2677) Haskell library needs to build with network >= 2.6

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

John Chee updated THRIFT-2677:
------------------------------

    Attachment: 0001-haskell-library-and-tutorial-build-with-network-2.5.patch

> Haskell library needs to build with network >= 2.6
> --------------------------------------------------
>
>                 Key: THRIFT-2677
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2677
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Haskell - Library, Tutorial
>            Reporter: John Chee
>         Attachments: 0001-haskell-library-and-tutorial-build-with-network-2.5.patch
>
>
> Some recent changes in the {{network}} library for Haskell require conditional compilation, both the haskell tutorial and library need to be updated to take this into account. Description of solution is on {{network}}'s hackage page: http://hackage.haskell.org/package/network-2.6.0.1
> Travis fails with:
> {code}
> src/Thrift/Transport/HttpClient.hs:29:8:
> Could not find module ‘Network.URI’
> It is a member of the hidden package ‘network-uri-2.6.0.0’.
> Perhaps you need to add ‘network-uri’ to the build-depends in your .cabal file.
> Use -v to see a list of the files searched for.
> cabal: Error: some packages failed to install:
> thrift-1.0.0 failed during the building phase. The exception was:
> ExitFailure 1
> {code}
> Travis run with this patch applied: https://travis-ci.org/cheecheeo/thrift/builds/33556425
> Tutorial successfully compiles:
> {code}
> % cabal --sandbox-config-file=../../cabal.sandbox.config install                                                                                                                                                   ±  ⃠
> Resolving dependencies...
> Configuring ThriftTutorial-0.1.0...
> Building ThriftTutorial-0.1.0...
> Preprocessing executable 'HaskellServer' for ThriftTutorial-0.1.0...
> [1 of 7] Compiling Shared_Types     ( gen-hs/Shared_Types.hs, dist/dist-sandbox-ca46c903/build/HaskellServer/HaskellServer-tmp/Shared_Types.o )
> [2 of 7] Compiling SharedService_Iface ( gen-hs/SharedService_Iface.hs, dist/dist-sandbox-ca46c903/build/HaskellServer/HaskellServer-tmp/SharedService_Iface.o )
> [3 of 7] Compiling SharedService    ( gen-hs/SharedService.hs, dist/dist-sandbox-ca46c903/build/HaskellServer/HaskellServer-tmp/SharedService.o )
> [4 of 7] Compiling Tutorial_Types   ( gen-hs/Tutorial_Types.hs, dist/dist-sandbox-ca46c903/build/HaskellServer/HaskellServer-tmp/Tutorial_Types.o )
> [5 of 7] Compiling Calculator_Iface ( gen-hs/Calculator_Iface.hs, dist/dist-sandbox-ca46c903/build/HaskellServer/HaskellServer-tmp/Calculator_Iface.o )
> [6 of 7] Compiling Calculator       ( gen-hs/Calculator.hs, dist/dist-sandbox-ca46c903/build/HaskellServer/HaskellServer-tmp/Calculator.o )
> [7 of 7] Compiling Main             ( HaskellServer.hs, dist/dist-sandbox-ca46c903/build/HaskellServer/HaskellServer-tmp/Main.o )
> Linking dist/dist-sandbox-ca46c903/build/HaskellServer/HaskellServer ...
> Preprocessing executable 'HaskellClient' for ThriftTutorial-0.1.0...
> [1 of 9] Compiling Shared_Types     ( gen-hs/Shared_Types.hs, dist/dist-sandbox-ca46c903/build/HaskellClient/HaskellClient-tmp/Shared_Types.o )
> [2 of 9] Compiling SharedService_Iface ( gen-hs/SharedService_Iface.hs, dist/dist-sandbox-ca46c903/build/HaskellClient/HaskellClient-tmp/SharedService_Iface.o )
> [3 of 9] Compiling SharedService    ( gen-hs/SharedService.hs, dist/dist-sandbox-ca46c903/build/HaskellClient/HaskellClient-tmp/SharedService.o )
> [4 of 9] Compiling Tutorial_Types   ( gen-hs/Tutorial_Types.hs, dist/dist-sandbox-ca46c903/build/HaskellClient/HaskellClient-tmp/Tutorial_Types.o )
> [5 of 9] Compiling Calculator_Iface ( gen-hs/Calculator_Iface.hs, dist/dist-sandbox-ca46c903/build/HaskellClient/HaskellClient-tmp/Calculator_Iface.o )
> [6 of 9] Compiling SharedService_Client ( gen-hs/SharedService_Client.hs, dist/dist-sandbox-ca46c903/build/HaskellClient/HaskellClient-tmp/SharedService_Client.o )
> [7 of 9] Compiling Calculator       ( gen-hs/Calculator.hs, dist/dist-sandbox-ca46c903/build/HaskellClient/HaskellClient-tmp/Calculator.o )
> [8 of 9] Compiling Calculator_Client ( gen-hs/Calculator_Client.hs, dist/dist-sandbox-ca46c903/build/HaskellClient/HaskellClient-tmp/Calculator_Client.o )
> [9 of 9] Compiling Main             ( HaskellClient.hs, dist/dist-sandbox-ca46c903/build/HaskellClient/HaskellClient-tmp/Main.o )
> Linking dist/dist-sandbox-ca46c903/build/HaskellClient/HaskellClient ...
> Installing executable(s) in /home/jchee/packages/thrift/.cabal-sandbox/bin
> Installed ThriftTutorial-0.1.0
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)