On Wed, Sep 17, 2008 at 04:42:18PM -0700, Ian Lynagh wrote:
> Wed Sep 17 12:21:55 PDT 2008 Ian Lynagh <[EMAIL PROTECTED]>
> * ghc-pkg needs to make package.conf with sensible permissions
> It was calling openTempFile which uses a 600 permissions mask.
>
> M ./utils/ghc-pkg/Main.hs -11 +65
>
> View patch online:
> http://darcs.haskell.org/ghc/_darcs/patches/20080917192155-3fd76-93b205ab62ec3cc0c99c5b6397f113bc5d12fcd1.gz
Breaks the buidl with ghc-6.6:
Building ghc-pkg-6.9...
[1 of 2] Compiling Version ( Version.hs,
dist-inplace/build/ghc-pkg/ghc-pkg-tmp/Version.o )
[2 of 2] Compiling Main ( ./Main.hs,
dist-inplace/build/ghc-pkg/ghc-pkg-tmp/Main.o )
Main.hs:1246: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[2]: *** [with-bootstrapping-compiler] Error 1
gmake[2]: Leaving directory `/var/tmp/ghc/ghc/utils/ghc-pkg'
gmake[1]: *** [with-bootstrapping-compiler.ghc-pkg] Error 2
gmake[1]: Leaving directory `/var/tmp/ghc/ghc/utils'
gmake: *** [stage1] Error 2
Guys, could you please stop this copy/paste/modify-in-a-rush style
of development?
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc