On Wed, Sep 17, 2008 at 04:44:08PM -0700, Ian Lynagh wrote:
> Wed Sep 17 10:12:57 PDT 2008  Ian Lynagh <[EMAIL PROTECTED]>
>   * Implement openNewBinaryFile in a Compat module
>   This is like openBinaryTempFile except it doesn't mark the permissions
>   with 600. This means datafailes get the right permissions when they are
>   installed.
>   
>   This should really be in the base package.
> 
>     M ./Distribution/Compat/TempFile.hs -2 +78
>     M ./Distribution/Simple/Utils.hs -2 +3
> 
> View patch online:
> http://darcs.haskell.org/packages/Cabal/_darcs/patches/20080917171257-3fd76-7ce79d6acc3fc846540747e009fd5a7e566b4b67.gz


This breaks the build for ghc-6.6:

[ 8 of 54] Compiling Distribution.Compat.TempFile ( 
/var/tmp/ghc/ghc/libraries/Cabal/Distribution/Compat/TempFile.hs, 
/var/tmp/ghc/ghc/libraries/bootstrapping/Distribution/Compat/TempFile.o )

/var/tmp/ghc/ghc/libraries/Cabal/Distribution/Compat/TempFile.hs:116:25:
    Couldn't match expected type `GHC.IOBase.FD'
           against inferred type `CInt'
    In the first argument of `fdToHandle', namely `fd'
    In the first argument of `onException', namely `fdToHandle fd'
    In a 'do' expression:
        h <- (fdToHandle fd) `onException` (c_close fd)
gmake[1]: *** [cabal-bin] Error 1
gmake[1]: Leaving directory `/var/tmp/ghc/ghc/libraries'
gmake: *** [stage1] Error 2


Ciao,
        Kili
_______________________________________________
Cvs-libraries mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-libraries

Reply via email to