[Hackage] #202: add a flag/config to make cabal use sudo/su/.. when installing with --global

#202: add a flag/config to make cabal use sudo/su/.. when installing with --global ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Keywords: global install sudo Difficulty: normal | Ghcversion: 6.8.2 Platform: Linux | ---------------------------------+------------------------------------------ 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. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/202 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#202: add a flag/config to make cabal use sudo/su/.. when installing with --global ----------------------------------+----------------------------------------- Reporter: guest | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: global install sudo | Difficulty: normal Ghcversion: 6.8.2 | Platform: Linux ----------------------------------+----------------------------------------- Comment (by duncan): Apparently lots of Debian tools take -rsudo or --rootcmd=sudo and we could allow something similar either on the command line or in the cabal-install configuration file or both. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/202#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#202: add a flag/config to make cabal use sudo/su/.. when installing with
--global
----------------------------------+-----------------------------------------
Reporter: guest | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: cabal-install tool | Version: HEAD
Severity: normal | Resolution: fixed
Keywords: global install sudo | Difficulty: normal
Ghcversion: 6.8.2 | Platform: Linux
----------------------------------+-----------------------------------------
Changes (by duncan):
* status: new => closed
* resolution: => fixed
Comment:
Fixed:
{{{
Thu Mar 6 16:08:16 GMT 2008 Andrea Vezzosi
participants (1)
-
Hackage