#4982: ghc-7.0.1: make install sets not enough permissions on library documentation -----------------------------+---------------------------------------------- Reporter: Lemming | Owner: duncan Type: bug | Status: new Priority: high | Milestone: 7.2.1 Component: Build System | Version: 7.0.1 Keywords: | Testcase: Blockedby: | Difficulty: Os: Linux | Blocking: Architecture: x86 | Failure: Installing GHC failed -----------------------------+---------------------------------------------- Changes (by igloo):
* owner: igloo => duncan Comment: OK, `Distribution/Compat/CopyFile.hs` has {{{ setFileOrdinary, setFileExecutable :: FilePath -> IO () #ifndef mingw32_HOST_OS setFileOrdinary path = setFileMode path 0o644 -- file perms -rw-r--r-- setFileExecutable path = setFileMode path 0o755 -- file perms -rwxr-xr-x }}} so I think the Cabal's `createDirectoryIfMissingVerbose` needs to do something similar. But note that when making parent directories too, it'll need to set perms on all the parent directories it creates as well; i.e. it needs to reimplement createDirectoryIfMissing - or better, propose a new `directory` function that takes a file mode (hmm, need to think about what happens on Windows, though. Maybe it would need to be a `unix` function instead?). Duncan, this is in Cabal-land, so assigning to you. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4982#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs