Re: Package dependencies?
Murat Demirten <demirten@bilmuh.ege.edu.tr> wrote:
>I want to make the .deb package for a program. But my programs
>dependencies are like this:
>Depends: A | B, C | D
>
>But our programs can run if A and C or B and D selected. The problem is
>user can select A and D or B and C which leads to prevent running of my
>program. Can I solve this problem?
Put the dependency into conjunctive normal form, like this:
(A, C) | (B, D)
== A | (B, D), C | (B, D)
== A | B, A | D, C | B, C | D
It doesn't look immediately obvious, but this is the dependency you want
(unless you want *only* A and C or *only* B and D).
--
Colin Watson [cjw44@flatline.org.uk]
Reply to: