Opened 21 months ago

Last modified 7 months ago

#7152 new bug

Add flag to configure that skips overwriting of symlinks on install

Reported by: tibbe Owned by: thoughtpolice
Priority: high Milestone: 7.8.3
Component: Build System Version: 7.4.2
Keywords: Cc: hackage.haskell.org@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Sometimes when I'm installing a GHC release candidates I'd like to install the RC without overwriting the ghc etc symlinks in /usr/local/bin. It would be convenient to have a configure flag that told the install step to only install the versioned binaries (e.g. ghc-6.2.1) in /usr/local/bin, without the symlinks.

Change History (3)

comment:1 Changed 20 months ago by simonmar

  • Difficulty set to Unknown
  • Milestone set to 7.8.1
  • Priority changed from normal to high

I like this idea too.

comment:2 Changed 13 months ago by liyang

  • Cc hackage.haskell.org@… added

I install different versions to /usr/local/ghc/ghc-x.y.z and have a bunch of bash functions/aliases that prepend the selected version to $PATH &c.

If we're going to allow multiple versioned binaries to be installed directly to /usr (which would be nice), we'll want some way to choose between them too, cf. gcc_select on OS X, in which case we should also figure out how that'd interact with say Debian's update-alternatives(8).

comment:3 Changed 7 months ago by thoughtpolice

  • Owner set to thoughtpolice

I'll look into this for 7.8.1. I agree we should maybe have some gcc_select style thing, but I don't quite know how these works or the details of Debian's approach, so I may just do the simple thing first and come back to that.

Note: See TracTickets for help on using tickets.