Ticket #284 (new feature request: None)

Opened 7 years ago

Last modified 3 years ago

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) (diff)

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

Changed 7 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.

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

Changed 7 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).

Changed 7 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

Changed 7 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.

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

Changed 6 years ago by igloo

  • status changed from assigned to new
  • description modified (diff)
  • component changed from None to Build System
  • difficulty set to Unknown
  • architecture set to Unknown
  • milestone set to 6.6.1
  • owner changed from nobody to juhp
  • os set to Unknown

What's the status of this?

Changed 6 years ago by igloo

  • testcase set to N/A

Changed 6 years ago by simonmar

  • priority changed from normal to low

Changed 5 years ago by igloo

  • priority changed from low to normal
  • milestone changed from 6.6.1 to 6.6.2

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.

Changed 5 years ago by simonmar

  • milestone changed from 6.6.2 to 6.8

Changed 5 years ago by simonmar

  • cc Panne, <sven.panne@…> added

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

Changed 5 years ago by simonmar

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

fix CC

Changed 4 years ago by igloo

  • milestone changed from 6.8 branch to _|_

Changed 4 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 4 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple

Changed 3 years ago by simonmar

  • cc bos@… added
  • 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.