Ticket #202 (closed enhancement: fixed)

Opened 6 years ago

Last modified 18 months ago

add a flag/config to make cabal use sudo/su/.. when installing with --global

Reported by: guest Owned by:
Priority: normal Milestone:
Component: cabal-install tool Version: HEAD
Severity: normal Keywords: global install sudo
Cc: sanzhiyan@… Difficulty: normal
GHC Version: 6.8.2 Platform: Linux

Description

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.

Change History

Changed 6 years ago 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.

Changed 5 years ago by duncan

  • status changed from new to closed
  • resolution set to fixed

Fixed:

Thu Mar  6 16:08:16 GMT 2008  Andrea Vezzosi <sanzhiyan@gmail.com>
  * Implement CLI flag --root-cmd for 'cabal install' as in #202
  It also adds the internal flag --only so we can avoid building a setup when build-type == Simple.

Changed 18 months ago by elga

Note: See TracTickets for help on using tickets.