[Hackage] #541: bootstrap.sh ignores PREFIX environment variable

Hackage trac at galois.com
Tue Apr 21 13:39:52 EDT 2009

#541: bootstrap.sh ignores PREFIX environment variable
  Reporter:  nr                  |        Owner:         
      Type:  defect              |       Status:  closed 
  Priority:  normal              |    Milestone:         
 Component:  cabal-install tool  |      Version:
  Severity:  major               |   Resolution:  fixed  
  Keywords:                      |   Difficulty:  unknown
Ghcversion:                      |     Platform:  Linux  
Changes (by duncan):

  * status:  new => closed
  * resolution:  => fixed


 Thanks. It turns out this has been fixed in the dev version already:

 Sun Mar 15 12:54:07 GMT 2009  Duncan Coutts <duncan at haskell.org>
   * Clarify the instructions in the README and bootstrap.sh
   Addresses the complaint in ticket #523.

 See #523 for the improved wording of the README about doing update before
 the config file gets created.

 Also, the `PREFIX`/`HOME` mistake was fixed in the same patch:
     hunk ./bootstrap.sh 135
     -  ./Setup configure --user "--prefix=${HOME}/.cabal" \
     +  ./Setup configure --user "--prefix=${PREFIX}" \

 However I do not understand the problem about no config file existing.
 When I remove the config file and the cached package index and try to
 install something I get:

 $ cabal install graphmod
 Config file /home/duncan/.cabal/config not found.
 Writing default configuration to /home/duncan/.cabal/config
 Warning: The package list for 'hackage.haskell.org' does not exist. Run
 'cabal update' to download it.
 cabal: There is no package named graphmod

 It sounds like you've got a partial config file rather than none at all.

 We cannot create the config file at install time because global installs
 cannot create per-user config files. The best we can do is to improve
 things so that the config file is always created on the first run and
 explained appropriately.

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

More information about the cabal-devel mailing list