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

Closed
bos opened this Issue May 24, 2012 · 6 comments

Comments

Projects
None yet
3 participants
Contributor

bos commented May 24, 2012

(Imported from Trac #446, reported by awick on 2009-01-07)

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

Contributor

bos commented May 24, 2012

(Imported comment by awick on 2009-01-07)

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

Contributor

bos commented May 24, 2012

(Imported comment by awick on 2009-02-01)

updated version of the patches

Contributor

bos commented May 24, 2012

(Imported comment by @dcoutts on 2009-02-10)

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

Contributor

bos commented May 24, 2012

(Imported comment by @dcoutts on 2011-01-11)

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

Collaborator

BardurArantsson commented Jun 25, 2015

Seems long-obsolete. Close?

Collaborator

gbaz commented Feb 7, 2018

As best as I can parse, this is asking for what we have now in the program-locations and the program-default-options stanzas of the cabal config file. I'm closing. If I missed something, please comment and reopen.

@gbaz gbaz closed this Feb 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment