#3106: hundred failures of release candidate ghc-6.10.1.20090314 in testsuite
---------------------------+------------------------------------------------
    Reporter:  maeder      |        Owner:         
        Type:  bug         |       Status:  new    
    Priority:  normal      |    Milestone:         
   Component:  Test Suite  |      Version:  6.10.1 
    Severity:  normal      |   Resolution:         
    Keywords:              |   Difficulty:  Unknown
    Testcase:              |           Os:  Solaris
Architecture:  x86         |  
---------------------------+------------------------------------------------
Comment (by igloo):

 Good point. Currently 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
 }}}
 So I think we want 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
 }}}
 A couple of problems:
  * 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
  * We will have to add `gzipProg`, thus changing the API
 It feels to me like the right thing to do though.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3106#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to