[Hackage] #486: cabal-install's bootstrap.sh has no recovery strategy in case of errors

Hackage trac at galois.com
Mon Feb 2 06:00:48 EST 2009


#486: cabal-install's bootstrap.sh has no recovery strategy in case of errors
----------------------------+-----------------------------------------------
  Reporter:  guest          |        Owner:         
      Type:  defect         |       Status:  new    
  Priority:  normal         |    Milestone:         
 Component:  Cabal library  |      Version:  1.6.0.1
  Severity:  normal         |     Keywords:         
Difficulty:  unknown        |   Ghcversion:         
  Platform:                 |  
----------------------------+-----------------------------------------------
 When attempting to install cabal-install for the first time, on a unix
 system, using the supplied bootstrap.sh script, if anything goes wrong
 during the script, it carries on regardless, leaving the install process
 in an inconsistent and potentially unrecoverable state.

 I tried to install cabal-install for ghc-6.8.2, which was originally
 supplied with an older version of Cabal (1.2.3.0), on a Mac.

 For some reason (probably another Cabal bug), my existing $HOME/.cabal
 /powerpc-darwin-6.8.2 directory had the wrong permissions.  So when
 bootstrap.sh built Cabal-1.6.0.1 and tried to install it, it could not.  I
 fixed the permissions and ran bootstrap.sh again:  It built and registered
 Cabal-1.6.0.1 correctly this time, but did nothing else, except print the
 error "Sorry, something went wrong".  Running the subsequent script
 commands manually (to configure, build and install HTTP, zlib, and cabal-
 install) also did nothing.  For instance:

 {{{
 $ runghc Setup configure --user && runghc Setup build && runghc Setup
 install
 $
 }}}

 Note the lack of any output whatsoever.

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


More information about the cabal-devel mailing list