Extending the dependency syntax

Ian Lynagh igloo at earth.li
Thu Jul 28 18:41:25 EDT 2005


On Thu, Jul 28, 2005 at 10:36:00PM +0100, Duncan Coutts wrote:
> 
> name: myprog
> version: 1.0
> executable:     mycliprog
> build-depends: 
>   base>=1.0 
>   (|| gtk>=0.9.8 [gui])
>   (|| hscgi>=1.0 [cgi]) 

Unless I'm confused I think what you mean should be written

build-depends: 
  base>=1.0 
  (gtk>=0.9.8 [gui])
  (hscgi>=1.0 [cgi]) 

I'd say that, with what you wrote, not having hscgi installed would
satisfy the requirements for the cgi option.

(If I said I prefered this syntax:
    build-depends: base (>= 1.0),
                   gtk [gui] | ctk [cli],
                   hscgi (>=1.0) [cgi]
would you all complain I was trying to make it a copy of Debian's
syntax?  :-)  )


Thanks
Ian



More information about the Libraries mailing list