Opened 9 years ago

Last modified 4 years ago

#284 new feature request (None)

RPM doesn't support --prefix

Reported by: skaller Owned by: juhp
Priority: normal Milestone:
Component: Build System Version: None
Keywords: Cc: sven.panne@…, bos@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: N/A Blocked By:
Blocking: Related Tickets:

Description (last modified by igloo)

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 :)

Change History (17)

comment:1 Changed 9 years ago by simonmar

  • Status changed from assigned to closed
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.

comment:2 Changed 9 years ago by skaller

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:3 Changed 9 years ago by simonmar

  • Summary changed from minor bug in rpm (x86 linux) to RPM doesn't support --prefix
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:4 Changed 9 years ago by nobody

Logged In: NO 

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

Karl M. Syring
syring@email.com

comment:5 Changed 9 years ago by juhp

Logged In: YES 
user_id=139853

Not really sure what the right solution is - one hack that
comes to mind is adding a %post install script in the spec file
that would replace the default prefix with the specified one.

comment:6 Changed 9 years ago by juhp

Logged In: YES 
user_id=139853

This is now fixed in Fedora Haskell as of ghc-6.4-7.
I will send in a spec file patch "as soon as the dust settles".

Feel free to assign this to me. :)

comment:7 Changed 8 years ago by igloo

  • Architecture set to Unknown
  • Component changed from None to Build System
  • Description modified (diff)
  • Difficulty set to Unknown
  • Milestone set to 6.6.1
  • Operating System set to Unknown
  • Owner changed from nobody to juhp
  • Status changed from assigned to new

What's the status of this?

comment:8 Changed 8 years ago by igloo

  • Test Case set to N/A

comment:9 Changed 7 years ago by simonmar

  • Priority changed from normal to low

comment:10 Changed 7 years ago by igloo

  • Milestone changed from 6.6.1 to 6.6.2
  • Priority changed from low to normal

We plan to change the build system to always work as if BIN_DIST was set, so the script would have $topdir in it rather than a fixed path. This would be substituted for at install time, so this bug should then be easily fixable.

We're not going to hold 6.6.1 up for it, but it should be easily doable for 6.6.2.

comment:11 Changed 7 years ago by simonmar

  • Milestone changed from 6.6.2 to 6.8

comment:12 Changed 6 years ago by simonmar

  • Cc Panne <sven.panne@…> added

Sven, is anything happening regarding this bug? Do we intend to fix it?

comment:13 Changed 6 years ago by simonmar

  • Cc sven.panne@… added; Panne <sven.panne@…> removed

fix CC

comment:14 Changed 6 years ago by igloo

  • Milestone changed from 6.8 branch to _|_

comment:15 Changed 6 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:16 Changed 6 years ago by simonmar

  • Operating System changed from Unknown to Unknown/Multiple

comment:17 Changed 4 years ago by simonmar

  • Cc bos@… added
  • Type of failure set to None/Unknown

Bryan: this is an old bug against GHC. Is it worth keeping around, do you think?

Note: See TracTickets for help on using tickets.