Ticket #446 (new defect)

Opened 4 years ago

Last modified 15 months ago

Can't set path to tools in ~/.cabal/config

Reported by: awick Owned by:
Priority: normal Milestone: cabal-install-0.16
Component: cabal-install tool Version: HEAD
Severity: normal Keywords:
Cc: Difficulty: normal
GHC Version: 6.8.3 Platform:

Description

The config file for cabal-install lets me set all sorts of useful paths, except for the non-compiler tools. In other words, there's no config file mapping for the --with-PROG or --PROG-options flags, which would be really convenient.

(At least, when I tried the obvious versions, it didn't work. Maybe missing docs somewhere?)

Attachments

aux_program_patches.tar.gz Download (3.8 KB) - added by awick 4 years ago.
updated version of the patches

Change History

Changed 4 years ago by duncan

  • milestone set to cabal-install-0.8

Changed 4 years ago by awick

Hi -

The (now) attached patch set implements the behavior we were looking for, but probably does it in the wrong way. Specifically, I couldn't figure out an easy way to use ProgramConfiguration? to carry the information around such that the right flags could be added during load and spit out during use. So I added another data structure and used that.

Hopefully either not using ProgramConfiguration? was the right thing to do, or these patches will help in doing it the right way.

The patches apply cleanly to cabal-install 0.6.0.

-Adam

Changed 4 years ago by awick

updated version of the patches

Changed 2 years ago by duncan

  • version changed from 1.6.0.1 to HEAD
  • milestone changed from cabal-install-0.8 to cabal-install-0.10

Sigh, I wish trac let one search for tickets with patches so things like this would not get lost. :-(

Changed 2 years ago by duncan

This would be particularly useful for negating the new ghc default that -rtsopts is needed to do any profiling or tracing.

Changed 15 months ago by kosmikus

  • milestone changed from cabal-install-0.10 to cabal-install-0.16
Note: See TracTickets for help on using tickets.