public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH pve-kernel] fix #3781: add Provides: wireguard-modules to control.in
@ 2021-12-10 16:49 Stoiko Ivanov
  2021-12-10 17:27 ` Thomas Lamprecht
  0 siblings, 1 reply; 3+ messages in thread
From: Stoiko Ivanov @ 2021-12-10 16:49 UTC (permalink / raw)
  To: pve-devel

without this line `apt install wireguard` pulls in Debian's kernel +
firmware which confilcts with pve-firmware - forcing users to install
via `apt install --no-install-recommends wireguard-tools` in order
to get the userspace utils.

For Debian's upstream kernel the linux-image-amd64 provides the
modules [0] - since pve-kernel-@KVNAME@ already provides linux-image
this should be the place where we add the provides

versioned dependency added since wireguard has a versioned dependency
on wireguard-modules.

[0] https://salsa.debian.org/kernel-team/linux/-/blob/master/debian/templates/control.image.meta.in

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
---
* quickly tested by building a kernel with this patch - installing it in a VM
  and running `apt install wireguard` afterwards
 debian/control.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/control.in b/debian/control.in
index ee91978..fd8f4cb 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -59,7 +59,7 @@ Package: pve-kernel-@KVNAME@
 Section: admin
 Priority: optional
 Architecture: any
-Provides: linux-image
+Provides: linux-image, wireguard-modules (= 1.0.0)
 Suggests: pve-firmware
 Depends: busybox, initramfs-tools
 Recommends: grub-pc | grub-efi-amd64 | grub-efi-ia32 | grub-efi-arm64
@@ -68,7 +68,7 @@ Description: The Proxmox PVE Kernel Image
 
 Package: pve-kernel-@KVNAME@-dbgsym
 Architecture: any
-Provides: linux-debug
+Provides: linux-debug, wireguard-modules (= 1.0.0)
 Section: devel
 Priority: optional
 Build-Profiles: <pkg.pve-kernel.debug>
-- 
2.30.2





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-10 17:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-10 16:49 [pve-devel] [PATCH pve-kernel] fix #3781: add Provides: wireguard-modules to control.in Stoiko Ivanov
2021-12-10 17:27 ` Thomas Lamprecht
2021-12-10 17:33   ` Stoiko Ivanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal