[Hackage] #295: ld-options parsing treats , as separator

Hackage trac at galois.com
Tue Jul 29 14:36:38 EDT 2008


#295: ld-options parsing treats , as separator
----------------------------+-----------------------------------------------
  Reporter:  duncan         |        Owner:           
      Type:  defect         |       Status:  closed   
  Priority:  normal         |    Milestone:  Cabal-1.4
 Component:  Cabal library  |      Version:  HEAD     
  Severity:  normal         |   Resolution:  fixed    
  Keywords:                 |   Difficulty:  normal   
Ghcversion:  6.8.2          |     Platform:           
----------------------------+-----------------------------------------------
Changes (by duncan):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 Turns out all existing .cabal files are fine, none use `,` as a separator
 in any of the fields `cpp-options`, `cc-options` or `ld-options`. We can
 assume that configure scripts that write `.buildinfo` files do not use it
 as a separator since they're written by shell scripts which use space as a
 token separator and also because they're likely getting these options from
 some tool which would generate them in a format suitable to pass direct to
 gcc.

 {{{
 Tue Jul 29 18:05:56 BST 2008  Duncan Coutts <duncan at haskell.org>
   * Do not use ',' as a list separator for the cpp/cc/ld-options fields
   It breaks for some options like "ld-options: -Wl,-z,now"
   No existing .cabal files on hackage were using ',' as a
   list separator so this should not break anything.
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/295#comment:1>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list