#3603: cabal-install bootstrap script respects PREFIX inconsistently, fails
------------------------------+---------------------------------------------
Reporter: zooko | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.10.4
Severity: normal | Resolution:
Keywords: | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
------------------------------+---------------------------------------------
Comment (by zooko):
This patch fixes it:
{{{
zo...@hanford:~/playground/cabal-install-0.6.2$ diff -u bootstrap.sh.orig
bootstrap.sh
--- bootstrap.sh.orig 2009-10-20 13:33:35.000000000 -0700
+++ bootstrap.sh 2009-10-20 13:33:50.000000000 -0700
@@ -132,7 +132,7 @@
|| die "Compiling the Setup script failed"
[ -x Setup ] || die "The Setup script does not exist or cannot be run"
- ./Setup configure --user "--prefix=${HOME}/.cabal" \
+ ./Setup configure --user "--prefix=${PREFIX}" \
--with-compiler=${GHC} --with-hc-pkg=${GHC_PKG} \
${EXTRA_CONFIGURE_OPTS} ${VERBOSE} \
|| die "Configuring the ${PKG} package failed"
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3603#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs