Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2840

Cabal file points to LICENSE file outside the path of the Haskell project.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.9.2
    • Fix Version/s: 0.9.3
    • Component/s: Haskell - Library
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      Currently the Cabal file for the 0.9.2 package that is currently on Hackage will break when an attempt is made to install it:

      Downloading thrift-0.9.2...
      Configuring thrift-0.9.2...
      Warning: The 'license-file' field refers to the file '../../LICENSE' which
      does not exist.
      Building thrift-0.9.2...
      Preprocessing library thrift-0.9.2...
      [ 1 of 14] Compiling Thrift.Transport.IOBuffer ( src/Thrift/Transport/IOBuffer.hs, dist/dist-sandbox-791868f2/build/Thrift/Transport/IOBuffer.o )
      [ 2 of 14] Compiling Thrift.Arbitraries ( src/Thrift/Arbitraries.hs, dist/dist-sandbox-791868f2/build/Thrift/Arbitraries.o )
      [ 3 of 14] Compiling Thrift.Types     ( src/Thrift/Types.hs, dist/dist-sandbox-791868f2/build/Thrift/Types.o )
      [ 4 of 14] Compiling Thrift.Transport ( src/Thrift/Transport.hs, dist/dist-sandbox-791868f2/build/Thrift/Transport.o )
      [ 5 of 14] Compiling Thrift.Protocol  ( src/Thrift/Protocol.hs, dist/dist-sandbox-791868f2/build/Thrift/Protocol.o )
      [ 6 of 14] Compiling Thrift.Protocol.Binary ( src/Thrift/Protocol/Binary.hs, dist/dist-sandbox-791868f2/build/Thrift/Protocol/Binary.o )
      [ 7 of 14] Compiling Thrift.Protocol.Compact ( src/Thrift/Protocol/Compact.hs, dist/dist-sandbox-791868f2/build/Thrift/Protocol/Compact.o )
      [ 8 of 14] Compiling Thrift.Protocol.JSON ( src/Thrift/Protocol/JSON.hs, dist/dist-sandbox-791868f2/build/Thrift/Protocol/JSON.o )
      [ 9 of 14] Compiling Thrift.Transport.Handle ( src/Thrift/Transport/Handle.hs, dist/dist-sandbox-791868f2/build/Thrift/Transport/Handle.o )
      [10 of 14] Compiling Thrift.Transport.Empty ( src/Thrift/Transport/Empty.hs, dist/dist-sandbox-791868f2/build/Thrift/Transport/Empty.o )
      [11 of 14] Compiling Thrift.Transport.Framed ( src/Thrift/Transport/Framed.hs, dist/dist-sandbox-791868f2/build/Thrift/Transport/Framed.o )
      [12 of 14] Compiling Thrift.Transport.HttpClient ( src/Thrift/Transport/HttpClient.hs, dist/dist-sandbox-791868f2/build/Thrift/Transport/HttpClient.o )
      [13 of 14] Compiling Thrift           ( src/Thrift.hs, dist/dist-sandbox-791868f2/build/Thrift.o )
      [14 of 14] Compiling Thrift.Server    ( src/Thrift/Server.hs, dist/dist-sandbox-791868f2/build/Thrift/Server.o )
      In-place registering thrift-0.9.2...
      Creating package registration file: /tmp/pkgConf-thrift-0.925204.2
      cabal: ../../LICENSE: does not exist
      Failed to install thrift-0.9.2
      cabal: Error: some packages failed to install:
      thrift-0.9.2 failed during the final install step. The exception was:
      ExitFailure 1
      

      I've already created a pull request for this issue on Github which points the path to the file already inside the Haskell lib folder: https://github.com/apache/thrift/pull/272

        Attachments

          Activity

            People

            • Assignee:
              seanparsons Sean Parsons
              Reporter:
              seanparsons Sean Parsons
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: