Package: debian-policy Severity: normal X-Debbugs-Cc: [email protected], [email protected]
Often times, we need to express version range dependencies. The APT solver handles that by intersecting the dependencies[1]. We should extend policy to handle that case. [1] https://salsa.debian.org/apt-team/apt/-/blob/3.3.1/apt-pkg/solver3.cc?ref_type=tags#L800 Proposal: << EOF 7.2.1 Version Range dependencies If multiple dependencies are declared in the same field, on the same package, only differing in their version clause (if any), these dependencies are satisfied by the same package. For example, the dependency combination Depends: package (>= 2), package (<< 3) Can be satisified by either of these packages: Package: package Version: 2 Package: package-2 Provides: package (= 2) but it must not be be satisfied by installing two packages to independently satisfy the clauses such as: Package: package Version: 3 # satifies package (>= 2) Package: package-1 Version: 1 Provides: package (= 1) # satifies package (<< 3) EOF -- System Information: Debian Release: forky/sid APT prefers stonking APT policy: (500, 'stonking'), (500, 'resolute-updates'), (500, 'resolute-security'), (500, 'resolute'), (99, 'stonking-proposed') Architecture: amd64 (x86_64) Kernel: Linux 7.0.0-17-generic (SMP w/16 CPU threads; PREEMPT) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to C.UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled debian-policy depends on no packages. Versions of packages debian-policy recommends: ii libjs-jquery 3.7.1+dfsg+~3.5.33-1build1 ii libjs-sphinxdoc 8.2.3-12 ii sphinx-rtd-theme-common 3.1.0+dfsg-1 Versions of packages debian-policy suggests: pn doc-base <none> -- debian developer - deb.li/jak | jak-linux.org - free software dev ubuntu core developer i speak de, en

