[Hackage] #575: Cabal configure leaves behind temporary files on Windows

Hackage trac at galois.com
Tue Aug 18 20:13:30 EDT 2009

#575: Cabal configure leaves behind temporary files on Windows
  Reporter:  guest                |        Owner:         
      Type:  defect               |       Status:  new    
  Priority:  normal               |    Milestone:         
 Component:  Cabal library        |      Version:
  Severity:  normal               |     Keywords:         
Difficulty:  very easy (<1 hour)  |   Ghcversion:  6.10.1 
  Platform:  Windows              |  
 Every time 'configure' is run on Windows, a single .exe is left behind in
 the user's %TEMP% directory and is never removed.

 The problem is in checkForeignDeps in Distribution.Simple.Configure,
 specifically when GCC is run in builds.  A temporary filename is created
 to hold the output, but it has no extension.  When GCC is given this
 filename for output it appends .exe extension automatically.  Since this
 is a different filename it never gets removed.

 Fix is to specify an extension for the output, like ".tmp", so GCC will
 actually put it there.

Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/575>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

More information about the cabal-devel mailing list