#4982: ghc-7.0.1: make install sets not enough permissions on library
documentation
------------------------------------+---------------------------------------
  Reporter:  Lemming                |          Owner:  duncan
      Type:  bug                    |         Status:  closed
  Priority:  high                   |      Milestone:  7.2.1 
 Component:  Build System           |        Version:  7.0.1 
Resolution:  fixed                  |       Keywords:        
  Testcase:                         |      Blockedby:        
Difficulty:                         |             Os:  Linux 
  Blocking:                         |   Architecture:  x86   
   Failure:  Installing GHC failed  |  
------------------------------------+---------------------------------------
Changes (by duncan):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 Fixed in Cabal head and the cabal-1.10 branch. Also pushed to the cabal
 mirror used by ghc-7.0.x branch. It'll be fixed in ghc HEAD when it's
 Cabal repo is next synced.

 {{{
 Tue May 17 12:23:44 BST 2011  Duncan Coutts <[email protected]>
   * Reimplement createDirectoryIfMissingVerbose to use sensible file
 permissions
   Hopefully should fix ghc ticket #4982.
   The problem was permissions on directories: previously we used ordinary
   createDirectory and on unix this creates dirs using the current user's
   umask. If the root user has a silly umask then someone doing sudo
   install will end up with dirs that are not readable by non-root users.

   So the solution is to do the same as we do with files: override the
   umask and explicitly set the file permissions based on the kind of
   file: ordinary file, executable file and now also directory.

   Sadly we also had to re-implement createDirectoryIfMissing to use our
   new createDirectory wrapper function.
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4982#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to