Ticket #202 (closed enhancement: fixed)
add a flag/config to make cabal use sudo/su/.. when installing with --global
|Reported by:||guest||Owned by:|
|Severity:||normal||Keywords:||global install sudo|
cabal install --global usually fails because of missing privileges. sudo cabal install --global is quite messy since every intermediate file is then owned by root, so other tasks that wouldn't need privileges at all, now requires them to handle those files. I propose to add the possibility to configure a command to use when running the equivalent of "runhaskell Setup install" on the package. So that the user can set it in ~/.cabal/config and it will always be used when install --global is run.