[ ghc-Feature Requests-1084122 ] RPM doesn't support --prefix

SourceForge.net noreply at sourceforge.net
Tue Apr 12 09:06:32 EDT 2005


Feature Requests item #1084122, was opened at 2004-12-12 17:54
Message generated for change (Comment added) made by nobody
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: Nobody/Anonymous (nobody)
Date: 2005-04-12 06:06

Message:
Logged In: NO 

Still a problem with 6.2.4 - Additionally, you now need to
edit the package.conf file. 

Karl M. Syring
syring at email.com

----------------------------------------------------------------------

Comment By: Simon Marlow (simonmar)
Date: 2004-12-13 08: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 06: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 04: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