Ticket #541 (closed defect: fixed)
bootstrap.sh ignores PREFIX environment variable
| Reported by: | nr | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | cabal-install tool | Version: | 1.6.0.1 |
| Severity: | major | Keywords: | |
| Cc: | Difficulty: | unknown | |
| GHC Version: | Platform: | Linux |
Description
bootstrap.sh breaks if PREFIX is not $HOME/.cabal. Patch (from git diff) below:
diff --git a/bootstrap.sh b/bootstrap.sh
index 79729af..29f2b65 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -132,7 +132,7 @@ install_pkg () {
|| 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"
Change History
Note: See
TracTickets for help on using
tickets.
