[ ghc-Feature Requests-1084122 ] RPM doesn't support --prefix
SourceForge.net
noreply at sourceforge.net
Mon Dec 13 11:26:56 EST 2004
Feature Requests item #1084122, was opened at 2004-12-13 01:54
Message generated for change (Comment added) made by simonmar
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=358032&aid=1084122&group_id=8032
>Category: None
>Group: None
>Status: Open
Priority: 5
Submitted By: John Skaller (skaller)
Assigned to: Nobody/Anonymous (nobody)
>Summary: RPM doesn't support --prefix
Initial Comment:
After installing ghc for linux using rpm with
--prefix=/usr/local,
the ghc scriipt incorrectly thinks the libraries etc
are in /usr:
#!/bin/sh
GHCBIN="/usr/lib/ghc-6.2.2/ghc-6.2.2";
TOPDIROPT="-B/usr/lib/ghc-6.2.2";
# Mini-driver for GHC
exec $GHCBIN $TOPDIROPT ${1+"$@"}
After editing, at least the compiler actually starts up :)
----------------------------------------------------------------------
>Comment By: Simon Marlow (simonmar)
Date: 2004-12-13 16:26
Message:
Logged In: YES
user_id=48280
Re-opened. Any RPM gurus out there who could knock this one
on the head?
Note it's not just the ghc script, there's a couple of other
scripts that need munging (ghci, ghc-pkg, hsc2hs maybe).
----------------------------------------------------------------------
Comment By: John Skaller (skaller)
Date: 2004-12-13 14:54
Message:
Logged In: YES
user_id=5394
I can see it isn't supported :)
However after the change to those two lines, the compiler
works, links libraries, and the resultant binary executes
correctly
(as far as I can tell never having written any Haskell
before .. :)
So why not support it? I had no choice .. my root partition,
containing /usr is 97% full.. :)
----------------------------------------------------------------------
Comment By: Simon Marlow (simonmar)
Date: 2004-12-13 12:54
Message:
Logged In: YES
user_id=48280
You're trying to install the binary RPM using a different
prefix? That's not supported, I'm afraid.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=358032&aid=1084122&group_id=8032
More information about the Glasgow-haskell-users
mailing list