Comment 2 for bug 1873288

Revision history for this message
Jason A. Donenfeld (zx2c4) wrote :

The wireguard virtual package should imply "modules|dkms", and in general the order for the recommends here should change to "modules|dkms". Additionally, the dkms module should skip kernels that already have wireguard. We fixed this in Debian two ways, here:

1. https://salsa.debian.org/debian/wireguard-linux-compat/-/blob/debian/master/debian/patches/0002-Avoid-trying-to-compile-on-debian-5.5-kernels-Closes.patch
Ubuntu will need a similar patch as this, but with slightly different semantics, likely.

2. https://salsa.debian.org/debian/wireguard/-/commit/2d36365079f4668660963c5c819db3b544c5d56f
This changes the Depends order accordingly.