Skip to content
Snippets Groups Projects
Commit f5c0ebf5 authored by Andrea Bolognani's avatar Andrea Bolognani
Browse files

control: Strengthen dependencies between packages

When splitting a package, such as we did when we moved the QEMU
driver from libvirt-daemon to libvirt-daemon-driver-qemu, you
need to maintain at least some level of dependency between the
original package and the new one, or apt will simply not know
that it needs to install the latter in an upgrade scenario.

Using Recommends works for most cases, since Debian systems are
configured to install those by default; however, there are a
couple of cases where it's better to have a stronger dependency.

More specifically, due to the way libvirt has been packaged
until now, people expect that installing the libvirt-daemon
package will result in the QEMU driver being available, and
that installing the libvirt-daemon-system package will result
in the default network and default set of nwfilters being
configured.

The stronger dependencies help both for upgrades and in the
context of other packages' autopkgtests; unfortunately, it
also makes the package less flexible. We're going turn these
Depends back into Recommends once bullseye is out.
parent 4f3e06e4
No related branches found
No related tags found
1 merge request!87Strengthen deps
......@@ -124,12 +124,12 @@ Package: libvirt-daemon
Section: admin
Architecture: any
Depends:
libvirt-daemon-driver-qemu,
libvirt0 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Recommends:
libvirt-daemon-driver-lxc,
libvirt-daemon-driver-qemu,
libvirt-daemon-driver-vbox,
libvirt-daemon-driver-xen,
libxml2-utils,
......@@ -323,6 +323,8 @@ Depends:
iptables (>= 1.8.1-1) [linux-any] | firewalld,
libvirt-clients (= ${binary:Version}),
libvirt-daemon (= ${binary:Version}),
libvirt-daemon-config-network,
libvirt-daemon-config-nwfilter,
libvirt-daemon-system-systemd | libvirt-daemon-system-sysv,
logrotate,
policykit-1 [linux-any],
......@@ -331,8 +333,6 @@ Recommends:
dmidecode,
dnsmasq-base (>= 2.46-1),
iproute2,
libvirt-daemon-config-network,
libvirt-daemon-config-nwfilter,
mdevctl,
parted,
Suggests:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment