[Hackage] #543: cabal requires root privileges in order to modify files in /usr/lib/ghc-6.8.2

Hackage trac at galois.com
Tue Apr 21 13:36:14 EDT 2009


#543: cabal requires root privileges in order to modify files in
/usr/lib/ghc-6.8.2
-------------------------------+--------------------------------------------
  Reporter:  nr                |        Owner:         
      Type:  defect            |       Status:  new    
  Priority:  normal            |    Milestone:         
 Component:  Cabal library     |      Version:  1.6.0.1
  Severity:  normal            |   Resolution:         
  Keywords:  ghc package.conf  |   Difficulty:  unknown
Ghcversion:  6.8.2             |     Platform:  Linux  
-------------------------------+--------------------------------------------
Comment (by duncan):

 Right, the problem here is that we need root permissions so that ghc-pkg
 can modify ghc's global package db. This is one reason we do per-user
 installs by default.

 You're quite right though that ghc should be keeping its package db in
 `/var` rather than in its install libdir. Ideally we should have a second
 "global" one in `/usr/local/var` corresponding to packages installed in
 `/usr/local/lib`.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/543#comment:1>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list