Ticket #315 (closed defect: fixed)

Opened 4 months ago

Last modified 4 months ago

cabal-install (0.5.1) tool options are reversed

Reported by: Baughn Assigned to:
Priority: normal Milestone:
Component: cabal-install tool Version: 1.4.0.1
Severity: normal Keywords:
Cc: sveina@gmail.com Difficulty: normal
GHC Version: 6.8.3 Platform: Mac OS

Description

When passing tool options to cabal, such as in "cabal configure --user --c2hs-options='-C -xc -c cpp-4.2'", building with -v shows that the options are passed to c2hs in reverse order, and the build fails.

Reversing them before passing them to cabal makes the build work; meanwhile, if Setup.hs is invoked directly the options are not reversed.

Change History

07/30/08 06:06:25 changed by guest

  • platform set to Mac OS.
  • ghcversion changed from 6.8.2 to 6.8.3.

07/30/08 06:07:36 changed by guest

  • cc set to sveina@gmail.com.
  • reporter changed from guest to Baughn.

07/30/08 07:15:58 changed by igloo

This might have been fixed already in the HEAD by:

Thu Jul 10 19:14:37 BST 2008  Duncan Coutts <duncan@haskell.org>
  * Correct the order of args given by --PROG-options
  They were getting reversed. Problem located by Igloo.

08/01/08 07:30:53 changed by guest

That patch does indeed fix it. Since it applies cleanly to the 1.4 branch, perhaps it should be applied officially?

08/02/08 07:13:34 changed by duncan

  • status changed from new to closed.
  • resolution set to fixed.

Done (along with a bunch of other fixes from the HEAD branch).