[Hackage] #529: sdist creation code currently doesn't work with
Solaris's tar
Hackage
trac at galois.com
Sat Mar 21 18:54:22 EDT 2009
#529: sdist creation code currently doesn't work with Solaris's tar
----------------------------+-----------------------------------------------
Reporter: igloo | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Cabal library | Version: 1.6.0.1
Severity: normal | Keywords:
Difficulty: unknown | Ghcversion:
Platform: |
----------------------------+-----------------------------------------------
Cabal's sdist creation code currently doesn't work on Solaris.
The code (in Cabal's Distribution/Simple/SrcDist.hs) is:
{{{
let tarBallFilePath = targetPref </> tarBallName pkg_descr <.> "tar.gz"
rawSystemProgram verbosity tarProg
["-C", tmpDir, "-czf", tarBallFilePath, tarBallName pkg_descr]
return tarBallFilePath
}}}
but it looks like we need this instead:
{{{
let tarFilePath = targetPref </> tarBallName pkg_descr <.> "tar"
tarBallFilePath = tarFilePath <.> "gz"
rawSystemProgram verbosity tarProg
["-cf", tarFilePath, "-C", tmpDir, tarBallName pkg_descr]
rawSystemProgram verbosity gzipProg
[tarFilePath]
removeFile tarFilePath
return tarBallFilePath
}}}
Note that we don't actually tell gzip where to put the output, but I can't
see a way to do so without messing with stdout.
See http://hackage.haskell.org/trac/ghc/ticket/3106 for more details on
the problems.
--
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/529>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
More information about the cabal-devel
mailing list