patch applied (ghc): ghc-pkg needs to make package.conf with
kili at outback.escape.de
Fri Sep 19 16:49:10 EDT 2008
On Wed, Sep 17, 2008 at 04:42:18PM -0700, Ian Lynagh wrote:
> Wed Sep 17 12:21:55 PDT 2008 Ian Lynagh <igloo at earth.li>
> * 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:
Breaks the buidl with ghc-6.6:
[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 )
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: *** [with-bootstrapping-compiler] Error 1
gmake: Leaving directory `/var/tmp/ghc/ghc/utils/ghc-pkg'
gmake: *** [with-bootstrapping-compiler.ghc-pkg] Error 2
gmake: Leaving directory `/var/tmp/ghc/ghc/utils'
gmake: *** [stage1] Error 2
Guys, could you please stop this copy/paste/modify-in-a-rush style
More information about the Cvs-ghc