Goswin von Brederlow, 2012-02-09 11:14+0100: > Tanguy Ortolo <tanguy+deb...@ortolo.eu> writes: >> While this is sufficient for most cases, it does not cover one >> interesting case: a dependencies on a range of versions. For instance: >> Package: xul-ext-adblock-plus >> Depends: iceweasel (>= 3.6.13, << 12.0~a1+) | iceape (>= 2.1, << >> 2.9~a1+) | … > > That is just a > Depends: iceweasel (>= 3.6.13) | iceape (>= 2.1), > iceweasel (<< 12.0~a1+) | iceape (>= 2.1), > iceweasel (>= 3.6.13) | iceape (<< 2.9~a1+), > iceweasel (<< 12.0~a1+) | iceape (<< 2.9~a1+)
For two packages, yes, but as you noticed, it grows exponentially with the number of packages. More specifically, the number of dependencies as developped with de Morgan's laws is 2^n here. > There is another solution: Dummy packages (build by xul-ext-adblock-plus) > > Package: xul-ext-adblock-plus > Depends: xul-ext-adblock-plus-iceweasel | xul-ext-adblock-plus-iceape > > Package: xul-ext-adblock-plus-iceweasel > Depends: iceweasel (>= 3.6.13), iceweasel (<< 12.0~a1+) > > Package: xul-ext-adblock-plus-iceape > Depends: iceape (>= 2.1), iceape (<< 2.9~a1+) > > I'm not saying that is the way to do it but it is a possibility. Yes, a possibility which has other interesting advantages, although it may be difficult to implement. > Why does it remove it? Or rather in which situations? A simple "upgrade" > or "dist-upgrade" should keep back the package rather than remove > iceape. Obviously if you force the issue it will remove iceape but that > then is your own fault. I don't see how the situation would be different > with depends instead of breaks. In both cases it is impossible to > install a mismatching set of versions. > > This might be a bug in the frontent rather than xul-ext-adblock-plus. No, you are correct by saying that a simple upgrade or safe-upgrade will not remove it, but holding back a package for that reason is still a problem, and anyway the incompatibility will be problematic for a stable Debian release. -- ,--. : /` ) Tanguy Ortolo <xmpp:tan...@ortolo.eu> <irc://irc.oftc.net/Tanguy> | `-' Debian Developer \_ -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/jh07bk$lft$2...@dough.gmane.org