[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: grouping of alternative depends



On Sun, Mar 29, 2009 at 11:41:22AM +0100, Holger Levsen wrote:
> I'd like to use a depends like "(pdns-backend-ldap pdns-recursor) | bind9" but 
> afaik this is not possible. AFAICS I should file a wishbug against dpkg but 
> as I dont have time atm to dig through all the bugs against dpkg, I thought I 
> drop a mail here, in the hope that someone will point me to an already 
> existing bug or if not, just submit this. TIA.

The solution to this and similar problems are always, as pointed out
by specific solutions in this thread by others, to turn your
dependency formula into conjunctive normal form (CNF) [1], which is
always possible, though possibly ugly, as you observed.

Note that if you want to go the "wishlist bug" path however, the bug
should not be against dpkg, but rather against policy. The reason
being that policy currently only allows dependency formulae in
conjunctive normal form.

Cheers.

[1] http://en.wikipedia.org/wiki/Conjunctive_normal_form

-- 
Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7
zack@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/
Dietro un grande uomo c'è ..|  .  |. Et ne m'en veux pas si je te tutoie
sempre uno zaino ...........| ..: |.... Je dis tu à tous ceux que j'aime

Attachment: signature.asc
Description: Digital signature


Reply to: